.github: Remove Nix matrix

This commit is contained in:
Zhaofeng Li 2023-01-27 23:52:28 -07:00
parent f894e03f60
commit 9cb8413602
5 changed files with 2 additions and 35 deletions

View file

@ -11,11 +11,8 @@ jobs:
image: ubuntu-latest image: ubuntu-latest
- label: macOS - label: macOS
image: macos-12 image: macos-12
nix:
- version: 2.13.2
url: https://releases.nixos.org/nix/nix-2.13.2/install
name: ${{ matrix.os.label }} + Nix ${{ matrix.nix.version }} name: ${{ matrix.os.label }}
runs-on: ${{ matrix.os.image }} runs-on: ${{ matrix.os.image }}
steps: steps:
- uses: actions/checkout@v3.3.0 - uses: actions/checkout@v3.3.0
@ -31,11 +28,9 @@ jobs:
- name: Build Colmena - name: Build Colmena
run: nix build -L run: nix build -L
if: ${{ !contains(matrix.nix.version, '2.3') }}
- name: Build and install Colmena with flake-compat - name: Build and install Colmena with flake-compat
run: nix-env -if default.nix run: nix-env -if default.nix
- name: Build manual - name: Build manual
run: nix build .#manual -L run: nix build .#manual -L
if: ${{ !contains(matrix.nix.version, '2.3') && runner.os != 'macOS' }}

View file

@ -9,12 +9,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
nix:
- version: 2.13.2
url: https://releases.nixos.org/nix/nix-2.13.2/install
steps: steps:
- uses: actions/checkout@v3.3.0 - uses: actions/checkout@v3.3.0

View file

@ -15,12 +15,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'zhaofengli/colmena' if: github.repository == 'zhaofengli/colmena'
strategy:
matrix:
nix:
- version: 2.13.2
url: https://releases.nixos.org/nix/nix-2.13.2/install
steps: steps:
- uses: actions/checkout@v3.3.0 - uses: actions/checkout@v3.3.0

View file

@ -15,12 +15,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'zhaofengli/colmena' if: github.repository == 'zhaofengli/colmena'
strategy:
matrix:
nix:
- version: 2.13.2
url: https://releases.nixos.org/nix/nix-2.13.2/install
steps: steps:
- uses: actions/checkout@v3.3.0 - uses: actions/checkout@v3.3.0

View file

@ -9,15 +9,8 @@ jobs:
os: os:
- label: Linux - label: Linux
image: ubuntu-latest image: ubuntu-latest
nix:
- version: 2.3.16
url: https://releases.nixos.org/nix/nix-2.3.16/install
- version: 2.4
url: https://releases.nixos.org/nix/nix-2.4/install
- version: 2.13.2
url: https://releases.nixos.org/nix/nix-2.13.2/install
name: ${{ matrix.os.label }} + Nix ${{ matrix.nix.version }} name: ${{ matrix.os.label }}
runs-on: ${{ matrix.os.image }} runs-on: ${{ matrix.os.image }}
steps: steps:
- uses: actions/checkout@v3.3.0 - uses: actions/checkout@v3.3.0
@ -37,6 +30,3 @@ jobs:
run: echo "NIX_PATH=nixpkgs=$(nix-instantiate --eval flake-compat.nix -A defaultNix.inputs.nixpkgs.outPath | sed 's|\"||g')" >> $GITHUB_ENV run: echo "NIX_PATH=nixpkgs=$(nix-instantiate --eval flake-compat.nix -A defaultNix.inputs.nixpkgs.outPath | sed 's|\"||g')" >> $GITHUB_ENV
- run: nix-shell --run "cargo test" - run: nix-shell --run "cargo test"
if: ${{ !contains(matrix.nix.version, '2.3') }}
- run: nix-shell --run "cargo test -- --skip flake"
if: ${{ contains(matrix.nix.version, '2.3') }}