Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 21 additions & 24 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-22.04, macos-13, macos-14]
os:
- ubuntu-22.04
- ubuntu-24.04-arm
- macos-15
- macos-13
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
nix_archives_url: https://github.com/nixbuild/nix-quick-install-action/releases/download/v29
nix_version: 2.24.9
- uses: cachix/install-nix-action@v30
- uses: cachix/cachix-action@v15
with:
name: nixbuild
Expand All @@ -44,17 +45,13 @@ jobs:
matrix:
os:
- ubuntu-22.04
- macos-14
- ubuntu-24.04-arm
- macos-15
- macos-13
nix_version:
- 2.24.9
- 2.23.3
- 2.22.3
- 2.21.4
- 2.20.8
- 2.19.6
- 2.18.8
- 2.3.18
- 2.26.1
- 2.25.5
- 2.24.12
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -82,17 +79,13 @@ jobs:
matrix:
os:
- ubuntu-22.04
- macos-14
- ubuntu-24.04-arm
- macos-15
- macos-13
nix_version:
- 2.24.9
- 2.23.3
- 2.22.3
- 2.21.4
- 2.20.8
- 2.19.6
- 2.18.8
- 2.3.18
- 2.26.1
- 2.25.5
- 2.24.12
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -135,6 +128,10 @@ jobs:
with:
name: nix-archives-Linux-X64
path: /tmp/archives
- uses: actions/download-artifact@v4
with:
name: nix-archives-Linux-ARM64
path: /tmp/archives
- uses: actions/download-artifact@v4
with:
name: nix-archives-macOS-X64
Expand All @@ -146,7 +143,7 @@ jobs:
- uses: ./
with:
nix_archives_url: file:///tmp/archives
nix_version: 2.24.9
nix_version: 2.24.12
- uses: cachix/cachix-action@v15
with:
name: nixbuild
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
minimal:
runs-on: ubuntu-latest
steps:
- uses: nixbuild/nix-quick-install-action@v29
- uses: nixbuild/nix-quick-install-action@v30
- run: nix build --version
- run: nix build ./examples/flakes-simple
- name: hello
Expand Down Expand Up @@ -112,17 +112,17 @@ Build a specific version of Nix like this (requires you to use a version of Nix
that supports flakes):

```
$ nix build github:nixbuild/nix-quick-install-action#nix-2_3_16
$ nix build github:nixbuild/nix-quick-install-action#nix-2_26_1

$ ./result/bin/nix --version
nix (Nix) 2.3.16
nix (Nix) 2.26.1
```

With `nix shell -c` you can also directly run Nix like this:

```
$ nix shell github:nixbuild/nix-quick-install-action#nix-2_2_2 -c nix --version
nix (Nix) 2.2.2
$ nix shell github:nixbuild/nix-quick-install-action#nix-2_26_1 -c nix --version
nix (Nix) 2.26.1
```

List all available Nix versions like this:
Expand Down Expand Up @@ -186,7 +186,7 @@ been removed in the latest revision of `nix-quick-install-action`, you can
specify a specific release of `nix-quick-install-action` like this:

```
$ nix build github:nixbuild/nix-quick-install-action/v12#nix-2_3_7
$ nix build github:nixbuild/nix-quick-install-action/v29#nix-2_24_9
```

Note that we've added `/v12` to the flake url above.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:

nix_version:
required: true
default: "2.24.9"
default: "2.24.12"
description: |
The version of Nix that should be installed

Expand Down
39 changes: 29 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 5 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs-unstable.url = "nixpkgs/ccc0c2126893dd20963580b6478d1a10a4512185";
nixpkgs-unstable.url = "github:nixos/nixpkgs/632f04521e847173c54fa72973ec6c39a371211c";
};

nixConfig = {
Expand All @@ -17,7 +17,7 @@
flake-utils,
nixpkgs-unstable,
}:
let allSystems = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
let allSystems = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
in flake-utils.lib.eachSystem allSystems (system:

let
Expand Down Expand Up @@ -53,14 +53,9 @@
nix.version nix
) (
[
nixpkgs-unstable.legacyPackages.${system}.nixVersions.latest
nixpkgs-unstable.legacyPackages.${system}.nixVersions.nix_2_23
nixpkgs-unstable.legacyPackages.${system}.nixVersions.nix_2_22
nixpkgs-unstable.legacyPackages.${system}.nixVersions.nix_2_21
nixpkgs-unstable.legacyPackages.${system}.nixVersions.nix_2_20
nixpkgs-unstable.legacyPackages.${system}.nixVersions.nix_2_19
nixpkgs-unstable.legacyPackages.${system}.nixVersions.nix_2_18
nixpkgs-unstable.legacyPackages.${system}.nixVersions.minimum
nixpkgs-unstable.legacyPackages.${system}.nixVersions.nix_2_26
nixpkgs-unstable.legacyPackages.${system}.nixVersions.nix_2_25
nixpkgs-unstable.legacyPackages.${system}.nixVersions.nix_2_24
]
));

Expand Down