Set up CI with GitHub Actions

This commit is contained in:
Evan Relf 2021-04-23 11:18:57 -07:00 committed by Evan Relf
parent e47269d1b6
commit b9bc5993aa

40
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: ci
on:
push:
branches:
- master
pull_request:
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
name: Checkout
- uses: cachix/install-nix-action@v12
name: Install Nix
with:
nix_path: nixpkgs=./nix/pkgs.nix
- uses: cachix/cachix-action@v8
name: Set up Cachix
with:
name: awakesecurity
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-build
name: nix-build
build-macos:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2.3.4
name: Checkout
- uses: cachix/install-nix-action@v12
name: Install Nix
with:
nix_path: nixpkgs=./nix/pkgs.nix
- uses: cachix/cachix-action@v8
name: Set up Cachix
with:
name: awakesecurity
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-build
name: nix-build