switched to using git+http #40
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: | |
| branches: | |
| - "**" | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Zig | |
| uses: mlugg/setup-zig@v2 | |
| with: | |
| version: master | |
| cache-key: ${{ runner.os }}-${{ hashFiles('build.zig', 'build.zig.zon') }} | |
| - name: Zig Version | |
| run: zig version | |
| - name: Format Check | |
| shell: bash | |
| run: | | |
| files=$(find . -type f -name '*.zig' \ | |
| -not -path './.zig-cache/*' \ | |
| -not -path './.zig-cache-*/*' \ | |
| -not -path './.zig-global-cache/*' \ | |
| -not -path './zig-out/*') | |
| zig fmt --check $files | |
| - name: Build | |
| run: zig build | |
| - name: Test | |
| run: zig build test | |
| - name: Examples | |
| run: zig build examples | |
| - name: Parity Report | |
| run: zig build parity-report | |
| - name: Parity Local | |
| shell: bash | |
| run: zig build parity-local |