2021-02-11 20:55:45 +01:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.4
|
2021-06-29 10:02:43 +02:00
|
|
|
- uses: cachix/install-nix-action@v13
|
|
|
|
with:
|
2021-09-20 07:03:39 +02:00
|
|
|
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.4pre20210823_af94b54/install
|
2021-06-29 10:02:43 +02:00
|
|
|
extra_nix_config: |
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
|
2021-09-20 07:03:39 +02:00
|
|
|
- run: nix flake check
|
|
|
|
- run: nix build
|
|
|
|
|
2021-09-20 07:05:10 +02:00
|
|
|
build-compat:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-09-20 07:03:39 +02:00
|
|
|
- uses: actions/checkout@v2.3.4
|
|
|
|
- uses: cachix/install-nix-action@v13
|
2021-02-11 20:55:45 +01:00
|
|
|
- run: nix-build
|
2021-09-20 07:03:39 +02:00
|
|
|
|
2021-02-11 20:55:45 +01:00
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.4
|
2021-09-20 07:03:39 +02:00
|
|
|
- uses: cachix/install-nix-action@v13
|
|
|
|
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
|
|
|
|
|
2021-06-29 10:15:36 +02:00
|
|
|
- run: nix-shell --run "cargo test"
|