Skip to content

Commit 3a18a77

Browse files
also build jammy X64 and ARM64 binaries
1 parent 4fd67f9 commit 3a18a77

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ jobs:
5656
- os: ubuntu-22.04
5757
python-version: '3.11'
5858
toxenv: py311-fuse2
59+
arch: X64
60+
- os: ubuntu-22.04-arm
61+
python-version: '3.11'
62+
toxenv: py311-fuse2
63+
arch: ARM64
5964
- os: ubuntu-24.04
6065
python-version: '3.12'
6166
toxenv: py312-fuse3
@@ -142,15 +147,15 @@ jobs:
142147
token: ${{ secrets.CODECOV_TOKEN }}
143148
env_vars: OS, python
144149

145-
- name: Build Borg fat binaries using PyInstaller
146-
if: ${{ runner.os == 'macOS' }}
150+
- name: Build Borg fat binaries (${{ matrix.os }}-${{ matrix.arch }})
151+
if: ${{ matrix.arch }}
147152
run: |
148153
pip install 'pyinstaller==6.14.2'
149154
mkdir -p dist/binary
150155
pyinstaller --clean --distpath=dist/binary scripts/borg.exe.spec
151156
152-
- name: Smoke-test the built binary (borg -V)
153-
if: ${{ runner.os == 'macOS' }}
157+
- name: Smoke-test the built binary (${{ matrix.os }}-${{ matrix.arch }})
158+
if: ${{ matrix.arch }}
154159
run: |
155160
pushd dist/binary
156161
echo "single-file binary"
@@ -162,8 +167,8 @@ jobs:
162167
tar czf borg.tgz borg-dir
163168
popd
164169
165-
- name: Prepare artifacts
166-
if: ${{ runner.os == 'macOS' }}
170+
- name: Prepare artifacts (${{ matrix.os }}-${{ matrix.arch }})
171+
if: ${{ matrix.arch }}
167172
run: |
168173
mkdir -p artifacts
169174
if [ -f dist/binary/borg.exe ]; then
@@ -175,8 +180,8 @@ jobs:
175180
echo "artifact files"
176181
ls -l artifacts/
177182
178-
- name: Upload artifacts
179-
if: ${{ runner.os == 'macOS' }}
183+
- name: Upload artifacts (${{ matrix.os }}-${{ matrix.arch }})
184+
if: ${{ matrix.arch }}
180185
uses: actions/upload-artifact@v4
181186
with:
182187
name: borg-${{ matrix.os }}-${{ matrix.arch }}

0 commit comments

Comments
 (0)