Skip to content

ci: fix

ci: fix #200

Workflow file for this run

name: Nix
on:
push:
branches:
- 'main'
- 'dev'
- 'dev-*'
jobs:
default:
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: export SYSTEM=$(nix eval --impure --expr 'builtins.currentSystem')
- 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:
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 nix/packages -A typhon
- run: nix-build nix/packages -A typhon-webapp
- run: nix-build nix/checks -A api
- run: nix-build nix/checks -A formatted