diff --git a/.github/workflows/flake.yaml b/.github/workflows/flake.yaml index 36b5e52..0fed31d 100644 --- a/.github/workflows/flake.yaml +++ b/.github/workflows/flake.yaml @@ -10,7 +10,27 @@ env: CACHIX_BINARY_CACHE: altf4llc-os jobs: + check: + strategy: + matrix: + os: + - macos-latest + - ubuntu-latest + runs-on: ${{ matrix.os }} + steps: + - uses: cachix/install-nix-action@v26 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v14 + with: + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + name: ${{ env.CACHIX_BINARY_CACHE }} + - uses: actions/checkout@v4 + - run: nix develop -c just check + build: + needs: + - check strategy: matrix: os: @@ -23,12 +43,10 @@ jobs: steps: - uses: cachix/install-nix-action@v26 with: - enable_kvm: true nix_path: nixpkgs=channel:nixos-unstable - uses: cachix/cachix-action@v14 with: authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} name: ${{ env.CACHIX_BINARY_CACHE }} - uses: actions/checkout@v4 - - run: nix develop -c just check - run: nix develop -c just build "${{ matrix.profile }}"