Skip to content

Commit

Permalink
ci: Add GitHub actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillespie committed Jul 22, 2023
1 parent 99b53e2 commit e422d78
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Nix Build

on:
- push
- pull_request

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://hydra.iohk.io https://cache.iog.io https://cache.nixos.org/
experimental-features = nix-command flakes
allow-import-from-derivation = true
accept-flake-config = true
- uses: cachix/cachix-action@v12
with:
name: sgillespie
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build

0 comments on commit e422d78

Please sign in to comment.