Fix regression in ziglibc tests #24
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| ZIG_VERSION: 0.15.2 | |
| ZIG_GLOBAL_CACHE_DIR: .zig-global-cache | |
| jobs: | |
| test-and-conformance: | |
| name: Test + Conformance (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Zig | |
| uses: mlugg/setup-zig@v2 | |
| with: | |
| version: ${{ env.ZIG_VERSION }} | |
| - name: Cache Zig and dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .zig-cache | |
| .zig-global-cache | |
| key: ${{ runner.os }}-zig-${{ env.ZIG_VERSION }}-${{ hashFiles('build.zig', 'src/**/*.zig', 'inc/**/*.h', 'test/**/*', '.github/workflows/ci.yml', '.gitmodules') }} | |
| restore-keys: | | |
| ${{ runner.os }}-zig-${{ env.ZIG_VERSION }}- | |
| - name: Run unit/integration tests | |
| run: zig build test | |
| - name: Run conformance suites | |
| run: zig build conformance |