colmena/.github/workflows/build.yml
2021-10-28 14:09:35 -07:00

36 lines
1,017 B
YAML

name: Build
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.5
- uses: cachix/install-nix-action@v14.1
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.4pre20210823_af94b54/install
extra_nix_config: |
experimental-features = nix-command flakes
- run: nix flake check
- run: nix build
build-compat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.5
- uses: cachix/install-nix-action@v14.1
- run: nix-build
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.5
- uses: cachix/install-nix-action@v14.1
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.4pre20210823_af94b54/install
extra_nix_config: |
experimental-features = nix-command flakes
- run: nix-shell --run "cargo test"