Skip to content

Commit

Permalink
ci: add macos
Browse files Browse the repository at this point in the history
  • Loading branch information
pnmadelaine committed Oct 13, 2023
1 parent 415bd38 commit 091646b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,27 @@ on:

jobs:
default:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
- uses: cachix/cachix-action@v12
with:
name: typhon
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build -L
- run: nix build -L .#typhon-webapp
- run: nix build -L .#checks.x86_64-linux.api
- run: nix build -L .#checks.x86_64-linux.formatted
- run: echo "system=$(nix eval --impure --expr 'builtins.currentSystem')" >> "$GITHUB_ENV"
- run: nix build -L .#packages."$system".typhon
- run: nix build -L .#packages."$system".typhon-webapp
- run: nix build -L .#checks."$system".api
- run: nix build -L .#checks."$system".formatted
legacy:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
Expand Down

0 comments on commit 091646b

Please sign in to comment.