A cross-platform simulator for the GreenArrays GA144 multi-computer chip.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add github CI workflow

Stole best bits of existing Zig github projects, primarily
mitchellh/libxev and the zigtools/zls project.

+51
+51
.github/workflows/main.yml
··· 1 + name: CI 2 + 3 + on: 4 + push: 5 + branches: 6 + - main 7 + pull_request: 8 + workflow_dispatch: 9 + 10 + jobs: 11 + build: 12 + strategy: 13 + fail-fast: false 14 + matrix: 15 + os: [namespace-profile-gasim] 16 + target: [ 17 + aarch64-linux-gnu, 18 + aarch64-linux-musl, 19 + x86_64-linux-gnu, 20 + x86_64-linux-musl, 21 + aarch64-macos, 22 + x86_64-macos, 23 + x86_64-windows-gnu 24 + ] 25 + runs-on: ${{ matrix.os }} 26 + steps: 27 + - name: Checkout code 28 + uses: actions/checkout@v4 29 + 30 + # Install Nix and use that to run our tests so our environment matches exactly. 31 + - uses: cachix/install-nix-action@v31 32 + with: 33 + nix_path: nixpkgs=channel:nixos-unstable 34 + 35 + # Run our checks to catch quick issues 36 + - run: nix flake check 37 + 38 + - name: Run zig fmt 39 + if: matrix.os == 'ubuntu-latest' 40 + run: zig fmt --check . 41 + 42 + - name: test 43 + run: nix develop -c zig build --summary all -Dcoverage -Dtarget=${{ matrix.target }} 44 + 45 + - name: Upload to Codecov 46 + uses: codecov/codecov-action@v5 47 + with: 48 + directory: zig-out/coverage/kcov-merged 49 + fail_ci_if_error: true 50 + verbose: true 51 +