Skip to content

Commit

Permalink
[devtools] Add GitHub Action for Nix build
Browse files Browse the repository at this point in the history
  • Loading branch information
akavel committed Jan 8, 2021
1 parent 75f10e9 commit 97276f3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/nix-toil-run-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# (based on: https://github.com/cachix/install-nix-action readme)
name: "(Nix) toil run-cpp"
on:
pull_request:
push:
jobs:
toil-run-cpp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Nix Flakes doesn't work on shallow clones
fetch-depth: 0
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-20.09
# Enable Nix Flakes
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install
extra_nix_config: |
experimental-features = nix-command flakes
- run: nix build -L .#toil-run-cpp

0 comments on commit 97276f3

Please sign in to comment.