@@ -12,46 +12,56 @@ permissions:
1212
1313jobs :
1414 build :
15- runs-on : ubuntu-latest
15+ runs-on : ${{ matrix.os }}
1616 strategy :
1717 fail-fast : false
1818 matrix :
19- target :
20- - bun-linux-x64
21- - bun-linux-x64-baseline
22- - bun-linux-x64-modern
23- - bun-linux-arm64
24- - bun-windows-x64
25- - bun-windows-x64-baseline
26- - bun-windows-x64-modern
27- - bun-windows-arm64
28- - bun-darwin-x64
29- - bun-darwin-arm64
19+ include :
20+ - target : bun-linux-x64
21+ os : ubuntu-latest
22+ artifact : video-link-debugger-linux-x64
23+ - target : bun-linux-x64-baseline
24+ os : ubuntu-latest
25+ artifact : video-link-debugger-linux-x64-baseline
26+ - target : bun-linux-x64-modern
27+ os : ubuntu-latest
28+ artifact : video-link-debugger-linux-x64-modern
29+ - target : bun-linux-arm64
30+ os : ubuntu-24.04-arm
31+ artifact : video-link-debugger-linux-arm64
32+ - target : bun-windows-x64
33+ os : windows-latest
34+ artifact : video-link-debugger-windows-x64.exe
35+ - target : bun-windows-x64-baseline
36+ os : windows-latest
37+ artifact : video-link-debugger-windows-x64-baseline.exe
38+ - target : bun-windows-x64-modern
39+ os : windows-latest
40+ artifact : video-link-debugger-windows-x64-modern.exe
41+ - target : bun-windows-arm64
42+ os : windows-11-arm
43+ artifact : video-link-debugger-windows-arm64.exe
44+ - target : bun-darwin-x64
45+ os : macos-13
46+ artifact : video-link-debugger-darwin-x64
47+ - target : bun-darwin-arm64
48+ os : macos-latest
49+ artifact : video-link-debugger-darwin-arm64
3050 steps :
3151 - uses : actions/checkout@v4
3252
3353 - uses : oven-sh/setup-bun@v2
3454
3555 - run : bun install --frozen-lockfile
3656
37- - name : Compute artifact name
38- id : artifact
39- run : |
40- short="${{ matrix.target }}"
41- short="${short#bun-}"
42- name="video-link-debugger-${short}"
43- case "${{ matrix.target }}" in
44- bun-windows-*) name="${name}.exe" ;;
45- esac
46- echo "name=$name" >> "$GITHUB_OUTPUT"
47-
4857 - name : Compile
49- run : bun build --compile --target=${{ matrix.target }} ./src/index.ts --outfile "${{ steps.artifact.outputs.name }}"
58+ shell : bash
59+ run : bun build --compile --target=${{ matrix.target }} ./src/index.ts --outfile "${{ matrix.artifact }}"
5060
5161 - uses : actions/upload-artifact@v4
5262 with :
53- name : ${{ steps .artifact.outputs.name }}
54- path : ${{ steps .artifact.outputs.name }}
63+ name : ${{ matrix .artifact }}
64+ path : ${{ matrix .artifact }}
5565 if-no-files-found : error
5666 retention-days : 7
5767
0 commit comments