File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1524permissions :
1625 contents : write
1726
1827jobs :
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
You can’t perform that action at this time.
0 commit comments