A library for parsing Tiled maps.
0
fork

Configure Feed

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

Add GitHub Workflow

Runs tests and coverage reported to codecov

+78
+78
.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: [ubuntu-latest, macos-latest] 16 + include: 17 + - os: ubuntu-latest 18 + target: x86_64-linux-musl 19 + - os: macos-latest 20 + target: aarch64-macos 21 + runs-on: ${{ matrix.os }} 22 + steps: 23 + - name: Checkout code 24 + uses: actions/checkout@v4 25 + 26 + # Install Nix and use that to run our tests so our environment matches exactly. 27 + - uses: cachix/install-nix-action@v31 28 + with: 29 + nix_path: nixpkgs=channel:nixos-unstable 30 + 31 + # Run our checks to catch quick issues 32 + - run: nix flake check 33 + 34 + - run: nix develop -c zig env 35 + 36 + - name: Run tests 37 + run: nix develop -c zig build test -Dtarget=${{ matrix.target }} --summary all 38 + 39 + build-windows: 40 + runs-on: windows-latest 41 + steps: 42 + - name: Checkout code 43 + uses: actions/checkout@v4 44 + 45 + - uses: mlugg/setup-zig@v1 46 + with: 47 + version: "0.14.0" 48 + 49 + - run: zig env 50 + 51 + - name: Run tests 52 + run: zig build test -Dtarget=x86_64-windows-gnu --summary all 53 + 54 + coverage: 55 + runs-on: ubuntu-latest 56 + steps: 57 + - name: Checkout code 58 + uses: actions/checkout@v4 59 + 60 + # Install Nix and use that to run our tests so our environment matches exactly. 61 + - uses: cachix/install-nix-action@v31 62 + with: 63 + nix_path: nixpkgs=channel:nixos-unstable 64 + 65 + # Run our checks to catch quick issues 66 + - run: nix flake check 67 + 68 + - run: nix develop -c zig env 69 + 70 + - name: Run tests with coverage 71 + run: nix develop -c zig build test -Dcoverage -Dtarget=x86_64-linux-musl --summary all 72 + 73 + - name: Upload to Codecov 74 + uses: codecov/codecov-action@v5 75 + with: 76 + directory: zig-out/coverage/kcov-merged 77 + fail_ci_if_error: true 78 + verbose: true