mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-01-06 22:29:48 +00:00
Merge pull request #220 from cachix/fix-master-tests
Some checks failed
install-nix-action test / simple-build (ubuntu-latest) (push) Failing after 1m5s
install-nix-action test / custom-nix-path (ubuntu-latest) (push) Failing after 53s
install-nix-action test / extra-nix-config (ubuntu-latest) (push) Failing after 1m6s
install-nix-action test / flakes (ubuntu-latest) (push) Failing after 1m1s
install-nix-action test / latest-installer (ubuntu-latest, x86_64-linux) (push) Failing after 18s
install-nix-action test / oldest-supported-installer (ubuntu-latest) (push) Failing after 54s
install-nix-action test / act-support (ubuntu-latest) (push) Failing after 55s
install-nix-action test / custom-nix-path (macos-latest) (push) Has been cancelled
install-nix-action test / extra-nix-config (macos-13) (push) Has been cancelled
install-nix-action test / simple-build (macos-13) (push) Has been cancelled
install-nix-action test / simple-build (macos-latest) (push) Has been cancelled
install-nix-action test / custom-nix-path (macos-13) (push) Has been cancelled
install-nix-action test / extra-nix-config (macos-latest) (push) Has been cancelled
install-nix-action test / flakes (macos-13) (push) Has been cancelled
install-nix-action test / flakes (macos-latest) (push) Has been cancelled
install-nix-action test / latest-installer (macos-13, x86_64-darwin) (push) Has been cancelled
install-nix-action test / latest-installer (macos-latest, aarch64-darwin) (push) Has been cancelled
install-nix-action test / oldest-supported-installer (macos-13) (push) Has been cancelled
install-nix-action test / oldest-supported-installer (macos-latest) (push) Has been cancelled
Some checks failed
install-nix-action test / simple-build (ubuntu-latest) (push) Failing after 1m5s
install-nix-action test / custom-nix-path (ubuntu-latest) (push) Failing after 53s
install-nix-action test / extra-nix-config (ubuntu-latest) (push) Failing after 1m6s
install-nix-action test / flakes (ubuntu-latest) (push) Failing after 1m1s
install-nix-action test / latest-installer (ubuntu-latest, x86_64-linux) (push) Failing after 18s
install-nix-action test / oldest-supported-installer (ubuntu-latest) (push) Failing after 54s
install-nix-action test / act-support (ubuntu-latest) (push) Failing after 55s
install-nix-action test / custom-nix-path (macos-latest) (push) Has been cancelled
install-nix-action test / extra-nix-config (macos-13) (push) Has been cancelled
install-nix-action test / simple-build (macos-13) (push) Has been cancelled
install-nix-action test / simple-build (macos-latest) (push) Has been cancelled
install-nix-action test / custom-nix-path (macos-13) (push) Has been cancelled
install-nix-action test / extra-nix-config (macos-latest) (push) Has been cancelled
install-nix-action test / flakes (macos-13) (push) Has been cancelled
install-nix-action test / flakes (macos-latest) (push) Has been cancelled
install-nix-action test / latest-installer (macos-13, x86_64-darwin) (push) Has been cancelled
install-nix-action test / latest-installer (macos-latest, aarch64-darwin) (push) Has been cancelled
install-nix-action test / oldest-supported-installer (macos-13) (push) Has been cancelled
install-nix-action test / oldest-supported-installer (macos-latest) (push) Has been cancelled
ci: fix latest installer tests
This commit is contained in:
commit
89fd1e98db
1 changed files with 22 additions and 13 deletions
35
.github/workflows/test.yml
vendored
35
.github/workflows/test.yml
vendored
|
@ -6,11 +6,8 @@ on:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
env:
|
env:
|
||||||
nixpkgs_channel: nixpkgs=channel:nixos-24.05
|
nixpkgs_channel: nixpkgs=channel:nixos-24.11
|
||||||
oldest_supported_installer: nix-2.8.0
|
oldest_supported_installer: nix-2.8.0
|
||||||
# Fetch new versions from the Nix CI run: https://github.com/NixOS/nix/blob/master/.github/workflows/ci.yml
|
|
||||||
# TODO: add pinning upstream or rethink this
|
|
||||||
pinned_installer_hash: zfzfrbb59jsqrfkldwj8drcr9nhhc49k
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
simple-build:
|
simple-build:
|
||||||
|
@ -87,23 +84,31 @@ jobs:
|
||||||
uses: ./
|
uses: ./
|
||||||
- run: nix flake show github:NixOS/nixpkgs
|
- run: nix flake show github:NixOS/nixpkgs
|
||||||
|
|
||||||
installer-options:
|
latest-installer:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
include:
|
||||||
- ubuntu-latest
|
- os: ubuntu-latest
|
||||||
# - macos-latest missing installer for aarch64-darwin
|
system: x86_64-linux
|
||||||
- macos-13
|
- os: macos-latest
|
||||||
|
system: aarch64-darwin
|
||||||
|
- os: macos-13
|
||||||
|
system: x86_64-darwin
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Run NAR server
|
||||||
|
run: |
|
||||||
|
curl --location https://github.com/cachix/nar-toolbox/releases/download/v0.1.0/nar-toolbox-${{ matrix.system }} -O
|
||||||
|
chmod +x ./nar-toolbox-${{ matrix.system }}
|
||||||
|
./nar-toolbox-${{ matrix.system }} serve https://cache.nixos.org &
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
nix_path: ${{ env.nixpkgs_channel }}
|
nix_path: ${{ env.nixpkgs_channel }}
|
||||||
install_options: --tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve
|
install_url: https://hydra.nixos.org/job/nix/master/installerScript/latest-finished/download/1/install
|
||||||
install_url: https://nixos-nix-install-tests.cachix.org/serve/${{ env.pinned_installer_hash }}/install
|
install_options: "--tarball-url-prefix http://localhost:8080"
|
||||||
- run: nix-build test.nix
|
- run: nix-build test.nix
|
||||||
|
|
||||||
oldest-supported-installer:
|
oldest-supported-installer:
|
||||||
|
@ -132,5 +137,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- 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-20.04
|
- run: docker pull ghcr.io/catthehacker/ubuntu:js-24.04
|
||||||
- run: ./bin/act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-20.04 push -j simple-build
|
- run: |
|
||||||
|
./bin/act push \
|
||||||
|
-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-24.04 \
|
||||||
|
-j simple-build \
|
||||||
|
--matrix os:ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue