Skip to content

Commit a9b6f34

Browse files
Add arm64 matrix job to Linux deps build workflow
Matrix build: x64 on ubuntu-22.04, arm64 on ubuntu-22.04-arm. Arch selector input defaults to both. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5d32a3f commit a9b6f34

1 file changed

Lines changed: 25 additions & 5 deletions

File tree

.github/workflows/build-deps-linux.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,33 @@ on:
1111
description: 'Upload to this release tag (e.g., deps-v1.3.0). Leave empty to skip upload.'
1212
required: false
1313
type: string
14+
arch:
15+
description: 'Architecture'
16+
required: false
17+
type: choice
18+
options:
19+
- x64
20+
- arm64
21+
- both
22+
default: both
1423

1524
permissions:
1625
contents: write
1726

1827
jobs:
1928
build-deps:
20-
runs-on: ubuntu-22.04
29+
strategy:
30+
matrix:
31+
include:
32+
- os: ubuntu-22.04
33+
arch: x64
34+
- os: ubuntu-22.04-arm
35+
arch: arm64
36+
fail-fast: false
37+
38+
runs-on: ${{ matrix.os }}
39+
40+
if: ${{ inputs.arch == 'both' || inputs.arch == matrix.arch }}
2141

2242
steps:
2343
- name: Checkout repository
@@ -41,19 +61,19 @@ jobs:
4161
4262
- name: Package dependencies
4363
run: |
44-
./Scripts/package-deps-linux.sh --version "${{ inputs.version }}" --arch x64
64+
./Scripts/package-deps-linux.sh --version "${{ inputs.version }}" --arch ${{ matrix.arch }}
4565
4666
- name: Upload artifact
4767
uses: actions/upload-artifact@v4
4868
with:
49-
name: VapourBox-deps-${{ inputs.version }}-linux-x64
50-
path: dist/VapourBox-deps-${{ inputs.version }}-linux-x64.zip
69+
name: VapourBox-deps-${{ inputs.version }}-linux-${{ matrix.arch }}
70+
path: dist/VapourBox-deps-${{ inputs.version }}-linux-${{ matrix.arch }}.zip
5171

5272
- name: Upload to release
5373
if: ${{ inputs.release_tag != '' }}
5474
env:
5575
GH_TOKEN: ${{ github.token }}
5676
run: |
5777
gh release upload "${{ inputs.release_tag }}" \
58-
"dist/VapourBox-deps-${{ inputs.version }}-linux-x64.zip" \
78+
"dist/VapourBox-deps-${{ inputs.version }}-linux-${{ matrix.arch }}.zip" \
5979
--clobber

0 commit comments

Comments
 (0)