update ci branch #1
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: | |
# Run only when pushing to master branch, and making PRs | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: nixbuild/nix-quick-install-action@v22 | |
with: | |
nix_conf: | | |
experimental-features = nix-command flakes | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- name: Cache Nix dependencies | |
run: | | |
nix develop -j 4 -c echo | |
- name: Build 🔨 | |
id: build | |
run: | | |
nix build -j auto -L | |
- name: Flake checks 🧪 | |
run: | | |
nix \ | |
--option sandbox false \ | |
flake check -L \ | |
--override-input systems github:nix-systems/x86_64-linux |