Upgrade zig to 0.14.0-dev.2577+271452d22 aka 2024.11.0-mach #49
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: Test | |
| permissions: | |
| checks: write | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - unstable | |
| paths: | |
| - ".github/workflows/**" | |
| - "src/**" | |
| - "examples/**" | |
| - "libs/**" | |
| - "tools/**" | |
| - "build.zig" | |
| - "build.zig.zon" | |
| - ".zigversion" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - ".github/workflows/**" | |
| - "src/**" | |
| - "examples/**" | |
| - "libs/**" | |
| - "tools/**" | |
| - "build.zig" | |
| - "build.zig.zon" | |
| - ".zigversion" | |
| concurrency: | |
| # Cancels pending runs when a PR gets updated. | |
| group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} | |
| cancel-in-progress: true | |
| jobs: | |
| validation: | |
| name: Validation | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 3 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Read .zig-version | |
| id: zigversion | |
| uses: juliangruber/read-file-action@v1 | |
| with: | |
| path: ./.zigversion | |
| - name: Install Zig | |
| uses: mlugg/setup-zig@v1 | |
| with: | |
| version: ${{ steps.zigversion.outputs.content }} | |
| - name: Lint | |
| run: zig fmt --check . | |
| build-examples: | |
| needs: ["validation"] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [linux-large, macos-13-large, windows-large] | |
| runs-on: ${{matrix.os}} | |
| name: "Build examples" | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - if: matrix.os == 'linux-large' | |
| run: sudo apt update && sudo apt install lib-x11 | |
| - name: Read .zig-version | |
| id: zigversion | |
| uses: juliangruber/read-file-action@v1 | |
| with: | |
| path: ./.zigversion | |
| - name: Install Zig | |
| uses: mlugg/setup-zig@v1 | |
| with: | |
| version: ${{ steps.zigversion.outputs.content }} | |
| - name: Build examples | |
| shell: bash | |
| run: cd examples/ && zig build |