Add new Nix files for package management #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build" | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: test and build on ${{ matrix.os }}. | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
environment: cachix | |
steps: | |
- uses: actions/checkout@main | |
- uses: DeterminateSystems/flake-checker-action@main | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- uses: cachix/cachix-action@master | |
with: | |
name: nichijou | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix flake check --all-systems | |
- run: nix build |