mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2025-01-11 06:42:19 +01:00
Undo matrix logic
This commit is contained in:
parent
8d9c69de11
commit
7fcb842097
1 changed files with 7 additions and 16 deletions
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
|
@ -217,23 +217,14 @@ jobs:
|
|||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
matrix:
|
||||
versions:
|
||||
- { nix-installer: "0.12.0", nix: "2.18.0" }
|
||||
- { nix-installer: "0.14.0", nix: "2.18.1" }
|
||||
- { nix-installer: "0.18.0", nix: "2.20.0" }
|
||||
version:
|
||||
- "0.12.0"
|
||||
- "0.14.0"
|
||||
- "0.18.0"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
source-url: https://github.com/DeterminateSystems/nix-installer/releases/download/v${{ matrix.versions.nix-installer }}/nix-installer-x86_64-linux
|
||||
- name: Compare Nix version with expected version
|
||||
run: |
|
||||
NIX_VERSION_OUTPUT=$(nix --version)
|
||||
NIX_VERSION=$(echo "${NIX_VERSION_OUTPUT}" | awk '{print $NF}')
|
||||
EXPECTED_OUTPUT="nix (Nix) ${{ matrix.versions.nix }}"
|
||||
if [ "${NIX_VERSION_OUTPUT}" != "${EXPECTED_OUTPUT}" ]; then
|
||||
echo "Nix version ${NIX_VERSION} didn't match expected version ${{ matrix.versions.nix }}"
|
||||
exit 1
|
||||
else
|
||||
echo "Success! Nix version ${NIX_VERSION} installed as expected"
|
||||
fi
|
||||
source-url: https://github.com/DeterminateSystems/nix-installer/releases/download/v${{ matrix.version }}/nix-installer-x86_64-linux
|
||||
- name: Ensure that Nix is installed
|
||||
run: nix --version
|
||||
|
|
Loading…
Reference in a new issue