2019-10-03 00:06:28 +10:00
|
|
|
name: "install-nix-action test"
|
2019-09-30 05:52:02 +10:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
2020-09-22 00:41:22 +10:00
|
|
|
branches:
|
|
|
|
- master
|
2020-05-29 00:25:05 +10:00
|
|
|
|
2019-09-30 05:52:02 +10:00
|
|
|
jobs:
|
2020-05-27 21:17:01 +10:00
|
|
|
simple-build:
|
2019-09-30 05:52:02 +10:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-05-26 22:34:45 +10:00
|
|
|
os: [ubuntu-latest, macos-latest]
|
2019-09-30 05:52:02 +10:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-09-05 10:11:47 +10:00
|
|
|
- uses: actions/checkout@v4
|
2019-09-30 05:52:02 +10:00
|
|
|
- name: Install Nix
|
|
|
|
uses: ./
|
2020-09-21 21:51:23 +10:00
|
|
|
with:
|
2023-05-01 22:29:04 +10:00
|
|
|
nix_path: nixpkgs=channel:nixos-22.11
|
2020-05-27 21:17:01 +10:00
|
|
|
- run: nix-env -iA cachix -f https://cachix.org/api/v1/install
|
2019-11-19 22:03:06 +11:00
|
|
|
- run: cat /etc/nix/nix.conf
|
|
|
|
# cachix should be available and be able to configure a cache
|
2019-11-19 22:35:01 +11:00
|
|
|
- run: cachix use cachix
|
2020-05-12 20:42:14 +10:00
|
|
|
- run: nix-build test.nix
|
2020-05-29 00:25:05 +10:00
|
|
|
custom-nix-path:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-09-05 10:11:47 +10:00
|
|
|
- uses: actions/checkout@v4
|
2020-05-29 00:25:05 +10:00
|
|
|
- name: Install Nix
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-20.03
|
|
|
|
- run: test $NIX_PATH == "nixpkgs=channel:nixos-20.03"
|
|
|
|
- run: nix-build test.nix
|
2020-08-26 02:13:35 +10:00
|
|
|
|
|
|
|
extra-nix-config:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-09-05 10:11:47 +10:00
|
|
|
- uses: actions/checkout@v4
|
2020-08-26 02:13:35 +10:00
|
|
|
- name: Install Nix
|
|
|
|
uses: ./
|
2022-03-31 02:17:54 +11:00
|
|
|
with:
|
2023-05-01 22:29:04 +10:00
|
|
|
nix_path: nixpkgs=channel:nixos-22.11
|
2020-08-26 02:13:35 +10:00
|
|
|
extra_nix_config: |
|
2020-08-26 02:20:10 +10:00
|
|
|
sandbox = relaxed
|
2020-08-26 02:13:35 +10:00
|
|
|
- run: cat /etc/nix/nix.conf
|
|
|
|
- run: nix-build test.nix --arg noChroot true
|
2020-11-04 22:19:16 +11:00
|
|
|
|
|
|
|
flakes:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-09-05 10:11:47 +10:00
|
|
|
- uses: actions/checkout@v4
|
2020-11-04 22:19:16 +11:00
|
|
|
- name: Install Nix
|
|
|
|
uses: ./
|
|
|
|
- run: nix flake show github:NixOS/nixpkgs
|
2021-02-22 01:00:04 +11:00
|
|
|
|
|
|
|
installer-options:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-09-05 10:11:47 +10:00
|
|
|
- uses: actions/checkout@v4
|
2021-02-22 01:00:04 +11:00
|
|
|
- name: Install Nix
|
|
|
|
uses: ./
|
2022-03-31 02:17:54 +11:00
|
|
|
with:
|
2023-05-01 22:29:04 +10:00
|
|
|
nix_path: nixpkgs=channel:nixos-22.11
|
2023-01-20 06:05:55 +11:00
|
|
|
install_options: --tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve
|
|
|
|
install_url: https://nixos-nix-install-tests.cachix.org/serve/s62m7lc0q0mz2mxxm9q0kkrcg90njzhq/install
|
2021-02-22 01:00:04 +11:00
|
|
|
- run: nix-build test.nix
|
2021-11-06 08:28:02 +11:00
|
|
|
|
|
|
|
oldest-supported-installer:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-03-31 02:26:15 +11:00
|
|
|
os: [ubuntu-latest, macos-latest]
|
2021-11-06 08:28:02 +11:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-09-05 10:11:47 +10:00
|
|
|
- uses: actions/checkout@v4
|
2021-11-06 08:28:02 +11:00
|
|
|
- name: Install Nix
|
|
|
|
uses: ./
|
|
|
|
with:
|
2023-05-01 22:29:04 +10:00
|
|
|
nix_path: nixpkgs=channel:nixos-22.11
|
2023-01-20 06:05:55 +11:00
|
|
|
install_url: https://releases.nixos.org/nix/nix-2.8.0/install
|
2021-11-06 08:28:02 +11:00
|
|
|
- run: nix-build test.nix
|
2021-11-16 01:09:45 +11:00
|
|
|
|
2022-03-31 02:17:54 +11:00
|
|
|
act-support:
|
2021-11-16 01:09:45 +11:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-09-05 10:11:47 +10:00
|
|
|
- uses: actions/checkout@v4
|
2022-10-13 00:05:04 +11:00
|
|
|
- run: curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
|
2021-11-18 08:44:12 +11:00
|
|
|
- run: docker pull ghcr.io/catthehacker/ubuntu:js-20.04
|
2022-10-13 00:05:04 +11:00
|
|
|
- run: ./bin/act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:js-20.04 push -j simple-build
|