Skip to content

Commit 9518320

Browse files
committed
Test Linux ARM binaries
1 parent 6365428 commit 9518320

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -171,24 +171,29 @@ jobs:
171171
env:
172172
B2_TEST_APPLICATION_KEY: ${{ secrets.B2_TEST_APPLICATION_KEY }}
173173
B2_TEST_APPLICATION_KEY_ID: ${{ secrets.B2_TEST_APPLICATION_KEY_ID }}
174-
WORKFLOW_ID: ${{ github.run_id }}-${{ github.run_attempt }}-${{ github.job }}
175-
runs-on: ubuntu-latest
176-
container:
177-
image: "python:3.12" # can not use ${{ env.PYTHON_DEFAULT_VERSION }} here
178-
env:
179-
DEBIAN_FRONTEND: noninteractive
174+
WORKFLOW_ID: ${{ github.run_id }}-${{ github.run_attempt }}-${{ github.job }} runs-on: ${{ matrix.os }}
175+
runs-on: ${{ matrix.os }}
176+
strategy:
177+
fail-fast: false
178+
matrix:
179+
os: ["ubuntu-22.04", "ubuntu-22.04-arm"] # keep the versions aligned with cd.yml
180180
steps:
181181
- uses: actions/checkout@v4
182182
with:
183183
fetch-depth: 0
184+
- name: Set up Python ${{ env.PYTHON_DEFAULT_VERSION }}
185+
uses: deadsnakes/[email protected] # staticx doesn't work with python installed by setup-python action
186+
with:
187+
python-version: ${{ env.PYTHON_DEFAULT_VERSION }}
184188
- name: Install dependencies
185189
run: |
186-
apt-get -y update
187-
apt-get -y install patchelf
190+
sudo apt-get -y update
191+
sudo apt-get -y install patchelf scons
188192
python -m pip install --upgrade nox pdm
189193
git config --global --add safe.directory '*'
190194
- name: Bundle the distribution
191195
id: bundle
196+
shell: bash
192197
run: nox -vs bundle
193198
- name: Generate hashes
194199
id: hashes
@@ -213,11 +218,7 @@ jobs:
213218
B2_TEST_APPLICATION_KEY: ${{ secrets.B2_TEST_APPLICATION_KEY }}
214219
B2_TEST_APPLICATION_KEY_ID: ${{ secrets.B2_TEST_APPLICATION_KEY_ID }}
215220
WORKFLOW_ID: ${{ github.run_id }}-${{ github.run_attempt }}-${{ github.job }}
216-
runs-on: ${{ matrix.os }}
217-
strategy:
218-
fail-fast: false
219-
matrix:
220-
os: [windows-latest, windows-2025]
221+
runs-on: windows-2022 # keep the version aligned with cd.yml
221222
steps:
222223
- uses: actions/checkout@v4
223224
with:

pdm.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,5 @@ bundle = [
221221
"pyinstaller<6,>=5.13; python_version < \"3.13\"",
222222
"pyinstaller-hooks-contrib>=2023.6",
223223
"patchelf-wrapper==1.2.0; platform_system == \"Linux\"",
224-
"staticx~=0.13.9; platform_system == \"Linux\"",
224+
"staticx~=0.14.1; platform_system == \"Linux\"",
225225
]

0 commit comments

Comments
 (0)