zig 0.16.0 #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Integration | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Zig | |
| uses: mlugg/setup-zig@v2.0.5 | |
| - name: Run fmt | |
| run: zig build fmt | |
| - name: check git diff | |
| run: git diff --exit-code | |
| - name: Run `build` linux | |
| run: zig build -Dtarget=x86_64-linux-musl --prefix zig-out/x86_64-linux-musl install | |
| - name: Run `build` macos | |
| run: zig build -Dtarget=x86_64-macos --prefix zig-out/x86_64-macos install | |
| - name: Run `build` windows | |
| run: zig build -Dtarget=x86_64-windows --prefix zig-out/x86_64-windows install | |
| - name: check git diff | |
| run: git diff --exit-code | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: awk | |
| path: zig-out/* |