Skip to content

Commit

Permalink
add github action.
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Sep 11, 2023
1 parent 53314c1 commit 10b494d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Build Nix packages"
on:
pull_request:
push:
jobs:
nix:
strategy:
max-parallel: 1
matrix:
pkg: [aslp, bap-aslp, basil, bap-uq-pac]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
name: pac-nix
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-build ./pkgs.nix -A ${{matrix.pkg}} -o result-${{matrix.pkg}}
- run: ls -l

0 comments on commit 10b494d

Please sign in to comment.