Merge pull request #122 from malob/fix-mac-ci #23
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: Nix Agda CI | |
on: | |
push: | |
paths: | |
- flake.* | |
- .github/workflows/nix-agda.yml | |
pull_request: | |
paths: | |
- flake.* | |
- .github/workflows/nix-agda.yml | |
branches: [ master ] | |
jobs: | |
build-agda: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['macos-12', 'ubuntu-22.04'] | |
name: Nix Agda | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- name: Cache Nix builds | |
uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Build Agda | |
run: | | |
nix -L build .#agda |