File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 3535 target : aarch64-macos
3636 dist_os : darwin
3737 dist_arch : arm64
38- - runner : windows-latest
39- target : x86_64-windows
40- dist_os : windows
41- dist_arch : amd64
4238
4339 runs-on : ${{ matrix.runner }}
4440 steps :
7571 tar -C dist -czf "${archive}" nytgames LICENSE README.md
7672 echo "built ${archive}"
7773
78- - name : Build archive (Windows)
79- if : runner.os == 'Windows'
80- shell : pwsh
81- run : |
82- $version = "${{ steps.meta.outputs.version }}"
83- zig build -Doptimize=ReleaseSafe -Dtarget=${{ matrix.target }} -Dversion="$version"
84-
85- New-Item -ItemType Directory -Path dist -Force | Out-Null
86- Copy-Item zig-out/bin/nytgames.exe dist/nytgames.exe
87- Copy-Item LICENSE dist/LICENSE
88- Copy-Item README.md dist/README.md
89-
90- $archive = "nytgames-cli_${version}_${{ matrix.dist_os }}_${{ matrix.dist_arch }}.zip"
91- Compress-Archive -Path dist/nytgames.exe, dist/LICENSE, dist/README.md -DestinationPath $archive
92- Write-Host "built $archive"
93-
9474 - uses : actions/upload-artifact@v4
9575 with :
9676 name : tarballs-${{ matrix.dist_os }}-${{ matrix.dist_arch }}
You can’t perform that action at this time.
0 commit comments