Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pdm-project/setup-pdm
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.2
Choose a base ref
...
head repository: pdm-project/setup-pdm
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.3
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Mar 6, 2025

  1. fix: use correct libgcc for arm64 (#68)

    Signed-off-by: Firas Cheaib <firascheaib@gmail.com>
    firsou authored Mar 6, 2025
    Copy the full SHA
    deb8d8a View commit details
Showing with 8 additions and 3 deletions.
  1. +1 −1 README.md
  2. +1 −1 action.yml
  3. +6 −1 src/setup-pdm.ts
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ This action supports the following inputs:
| -------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `python-version` | Not specified | Version range or exact version of a Python version to use, using SemVer's version range syntax. |
| `python-version-file` | `pyproject.toml` | File containing the Python version to use. Example: .`python-version` |
| `architecture` | `x64` | The target architecture (x86, x64) of the Python interpreter. |
| `architecture` | `x64` | The target architecture (x86, x64, arm64) of the Python interpreter. |
| `allow-python-prereleases` | `false` | Allow prerelease versions of Python to be installed. |
| `token` | `${{ github.token }}` | Used to pull python distributions from actions/python-versions. Since there's a default, this is typically not supplied by the user. |
| `version` | Not specified | The version of PDM to install, or 'head' to install from the main branch. |
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ inputs:
python-version-file:
description: 'File containing the Python version to use. Example: .python-version'
architecture:
description: 'The target architecture (x86, x64) of the Python interpreter.'
description: 'The target architecture (x86, x64, arm64) of the Python interpreter.'
required: false
allow-python-prereleases:
description: Allow prerelease versions of Python to be installed.
7 changes: 6 additions & 1 deletion src/setup-pdm.ts
Original file line number Diff line number Diff line change
@@ -45,7 +45,12 @@ async function run(): Promise<void> {

if (process.platform === 'linux') {
// See https://github.com/actions/virtual-environments/issues/2803
core.exportVariable('LD_PRELOAD', '/lib/x86_64-linux-gnu/libgcc_s.so.1')
if (process.arch === 'x64') {
core.exportVariable('LD_PRELOAD', '/lib/x86_64-linux-gnu/libgcc_s.so.1')
}
else if (process.arch === 'arm64') {
core.exportVariable('LD_PRELOAD', '/lib/aarch64-linux-gnu/libgcc_s.so.1')
}
}
await exec(IS_WINDOWS ? 'python' : 'python3', cmdArgs, { input: await utils.fetchUrlAsBuffer(INSTALL_SCRIPT_URL) })
const installOutput: InstallOutput = JSON.parse(await utils.readFile('install-output.json'))