Test installation in CI #188
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
- name: Test existence of Cachix signing key | |
run: echo ${{ secrets.CACHIX_SIGNING_KEY }} | wc -c | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: charmonium | |
signingKey: ${{ secrets.CACHIX_SIGNING_KEY }} | |
- name: Run Just on-push stuff in development shell | |
run: nix develop --command just on-push |