forked from DGNum/colmena
.github: Update test matrix
This commit is contained in:
parent
006cb2c5ee
commit
0828bc3025
2 changed files with 31 additions and 13 deletions
43
.github/workflows/build.yml
vendored
43
.github/workflows/build.yml
vendored
|
@ -5,32 +5,51 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
nix:
|
||||||
|
- name: 2.3.16
|
||||||
|
url: https://releases.nixos.org/nix/nix-2.3.16/install
|
||||||
|
- name: 2.4
|
||||||
|
url: https://releases.nixos.org/nix/nix-2.4/install
|
||||||
|
- name: 2.5pre
|
||||||
|
url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.5pre20211026_5667822/install
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.5
|
- uses: actions/checkout@v2.3.5
|
||||||
- uses: cachix/install-nix-action@v14.1
|
- uses: cachix/install-nix-action@v15
|
||||||
with:
|
with:
|
||||||
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.4pre20210823_af94b54/install
|
install_url: ${{ matrix.nix.url }}
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
|
|
||||||
- run: nix flake check
|
- run: nix flake check
|
||||||
- run: nix build
|
if: ${{ !contains(matrix.nix.name, '2.3') }}
|
||||||
|
- name: Build Colmena
|
||||||
build-compat:
|
run: nix build -L
|
||||||
runs-on: ubuntu-latest
|
if: ${{ !contains(matrix.nix.name, '2.3') }}
|
||||||
steps:
|
- name: Build Colmena with flake-compat
|
||||||
- uses: actions/checkout@v2.3.5
|
run: nix-build
|
||||||
- uses: cachix/install-nix-action@v14.1
|
|
||||||
- run: nix-build
|
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
nix:
|
||||||
|
- name: 2.3.16
|
||||||
|
url: https://releases.nixos.org/nix/nix-2.3.16/install
|
||||||
|
- name: 2.4
|
||||||
|
url: https://releases.nixos.org/nix/nix-2.4/install
|
||||||
|
- name: 2.5pre
|
||||||
|
url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.5pre20211026_5667822/install
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.5
|
- uses: actions/checkout@v2.3.5
|
||||||
- uses: cachix/install-nix-action@v14.1
|
- uses: cachix/install-nix-action@v15
|
||||||
with:
|
with:
|
||||||
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.4pre20210823_af94b54/install
|
install_url: ${{ matrix.nix.url }}
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
|
|
||||||
- run: nix-shell --run "cargo test"
|
- run: nix-shell --run "cargo test"
|
||||||
|
if: ${{ !contains(matrix.nix.name, '2.3') }}
|
||||||
|
- run: nix-shell --run "cargo test -- --skip flake"
|
||||||
|
if: ${{ contains(matrix.nix.name, '2.3') }}
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
|
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
inputsFrom = [ defaultPackage ];
|
inputsFrom = [ defaultPackage ];
|
||||||
buildInputs = [ pkgs.nixUnstable ];
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export NIX_PATH=nixpkgs=${pkgs.path}
|
export NIX_PATH=nixpkgs=${pkgs.path}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue