mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-12-25 07:33:06 +00:00
Compare commits
9 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e002c8ec8 | ||
|
|
65fe36965b | ||
|
|
c61d28fbcf | ||
|
|
72e7d4072f | ||
|
|
15a7ab2c66 | ||
|
|
523410fd45 | ||
|
|
7e5978947b | ||
|
|
0b0e072294 | ||
|
|
16d2e3294d |
4 changed files with 11 additions and 15 deletions
14
.github/workflows/test-per-system.yml
vendored
14
.github/workflows/test-per-system.yml
vendored
|
|
@ -4,7 +4,7 @@ on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
runs-on:
|
runs-on:
|
||||||
description: 'GitHub Actions runner to use (e.g., ubuntu-latest, macos-13)'
|
description: 'GitHub Actions runner to use (e.g., ubuntu-latest, macos-latest)'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
system:
|
system:
|
||||||
|
|
@ -24,7 +24,7 @@ jobs:
|
||||||
simple-build:
|
simple-build:
|
||||||
runs-on: ${{ inputs.runs-on }}
|
runs-on: ${{ inputs.runs-on }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
|
@ -40,7 +40,7 @@ jobs:
|
||||||
custom-nix-path:
|
custom-nix-path:
|
||||||
runs-on: ${{ inputs.runs-on }}
|
runs-on: ${{ inputs.runs-on }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
|
@ -51,7 +51,7 @@ jobs:
|
||||||
extra-nix-config:
|
extra-nix-config:
|
||||||
runs-on: ${{ inputs.runs-on }}
|
runs-on: ${{ inputs.runs-on }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
|
@ -64,7 +64,7 @@ jobs:
|
||||||
flakes:
|
flakes:
|
||||||
runs-on: ${{ inputs.runs-on }}
|
runs-on: ${{ inputs.runs-on }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: ./
|
uses: ./
|
||||||
- run: nix flake show github:NixOS/nixpkgs
|
- run: nix flake show github:NixOS/nixpkgs
|
||||||
|
|
@ -72,7 +72,7 @@ jobs:
|
||||||
latest-installer:
|
latest-installer:
|
||||||
runs-on: ${{ inputs.runs-on }}
|
runs-on: ${{ inputs.runs-on }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||||
- name: Run NAR server
|
- name: Run NAR server
|
||||||
run: |
|
run: |
|
||||||
curl --location https://github.com/cachix/nar-toolbox/releases/download/v0.1.0/nar-toolbox-${{ inputs.system }} -O
|
curl --location https://github.com/cachix/nar-toolbox/releases/download/v0.1.0/nar-toolbox-${{ inputs.system }} -O
|
||||||
|
|
@ -89,7 +89,7 @@ jobs:
|
||||||
oldest-supported-installer:
|
oldest-supported-installer:
|
||||||
runs-on: ${{ inputs.runs-on }}
|
runs-on: ${{ inputs.runs-on }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
|
@ -45,10 +45,6 @@ jobs:
|
||||||
- runs-on: macos-15-intel
|
- runs-on: macos-15-intel
|
||||||
system: x86_64-darwin
|
system: x86_64-darwin
|
||||||
oldest_installer_version: nix-2.18.6
|
oldest_installer_version: nix-2.18.6
|
||||||
# macos13 will be retired on 04/12/2025
|
|
||||||
- runs-on: macos-13
|
|
||||||
system: x86_64-darwin
|
|
||||||
oldest_installer_version: nix-2.8.0
|
|
||||||
uses: ./.github/workflows/test-per-system.yml
|
uses: ./.github/workflows/test-per-system.yml
|
||||||
with:
|
with:
|
||||||
runs-on: ${{ matrix.runs-on }}
|
runs-on: ${{ matrix.runs-on }}
|
||||||
|
|
@ -58,7 +54,7 @@ jobs:
|
||||||
act-support:
|
act-support:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||||
- run: curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
|
- run: curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
|
||||||
- run: docker pull ghcr.io/catthehacker/ubuntu:js-24.04
|
- run: docker pull ghcr.io/catthehacker/ubuntu:js-24.04
|
||||||
- run: |
|
- run: |
|
||||||
|
|
|
||||||
4
.github/workflows/update-nix.yml
vendored
4
.github/workflows/update-nix.yml
vendored
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
update-nix-releases:
|
update-nix-releases:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
- name: Update nix releases
|
- name: Update nix releases
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
echo "LATEST_NIX=${latest_nix}" >> $GITHUB_ENV
|
echo "LATEST_NIX=${latest_nix}" >> $GITHUB_ENV
|
||||||
sed -i -E "s/nix_version=[0-9.]+/nix_version=${latest_nix}/" ./install-nix.sh
|
sed -i -E "s/nix_version=[0-9.]+/nix_version=${latest_nix}/" ./install-nix.sh
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v7
|
uses: peter-evans/create-pull-request@v8
|
||||||
with:
|
with:
|
||||||
title: "nix: ${{ env.CURRENT_NIX }} -> ${{ env.LATEST_NIX }}"
|
title: "nix: ${{ env.CURRENT_NIX }} -> ${{ env.LATEST_NIX }}"
|
||||||
commit-message: "nix: ${{ env.CURRENT_NIX }} -> ${{ env.LATEST_NIX }}"
|
commit-message: "nix: ${{ env.CURRENT_NIX }} -> ${{ env.LATEST_NIX }}"
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ echo "installer options: ${installer_options[*]}"
|
||||||
|
|
||||||
# There is --retry-on-errors, but only newer curl versions support that
|
# There is --retry-on-errors, but only newer curl versions support that
|
||||||
curl_retries=5
|
curl_retries=5
|
||||||
nix_version=2.32.3
|
nix_version=2.33.0
|
||||||
while ! curl -sS -o "$workdir/install" -v --fail -L "${INPUT_INSTALL_URL:-https://releases.nixos.org/nix/nix-${nix_version}/install}"; do
|
while ! curl -sS -o "$workdir/install" -v --fail -L "${INPUT_INSTALL_URL:-https://releases.nixos.org/nix/nix-${nix_version}/install}"; do
|
||||||
sleep 1
|
sleep 1
|
||||||
((curl_retries--))
|
((curl_retries--))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue