mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
update flakes installer
This commit is contained in:
parent
e5c4a4678a
commit
24f58e2ed7
1 changed files with 7 additions and 15 deletions
22
.github/workflows/test.yml
vendored
22
.github/workflows/test.yml
vendored
|
|
@ -7,13 +7,12 @@ jobs:
|
||||||
tests:
|
tests:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# macOS installer for nixUnstable seems broken atm
|
|
||||||
#os: [ ubuntu-latest, macos-latest ]
|
|
||||||
os: [ ubuntu-latest ]
|
os: [ ubuntu-latest ]
|
||||||
|
# FIXME macos garbage currently collect also nix-shell that runs the test
|
||||||
|
#os: [ ubuntu-latest, macos-latest ]
|
||||||
nix-install-url:
|
nix-install-url:
|
||||||
- https://nixos.org/nix/install
|
- https://nixos.org/nix/install
|
||||||
- https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20200618_377345e/install
|
- https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install
|
||||||
#- https://github.com/numtide/nix-flakes-installer/releases/download/nix-3.0pre20200804_ed52cf6/install
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
@ -21,16 +20,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
install_url: ${{ matrix.nix-install-url }}
|
install_url: ${{ matrix.nix-install-url }}
|
||||||
nix_path: nixpkgs=channel:nixpkgs-unstable
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
||||||
- name: Prevent garbage collections of gcroots
|
extra_nix_config: |
|
||||||
run:
|
keep-outputs = true
|
||||||
printf "keep-outputs = true\nkeep-derivations = true\nexperimental-features = nix-command flakes\n" | sudo tee -a /etc/nix/nix.conf;
|
keep-derivations = true
|
||||||
- name: Restart nix-daemon with systemctl
|
experimental-features = nix-command flakes
|
||||||
run:
|
|
||||||
sudo systemctl restart nix-daemon
|
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
- name: Restart nix-daemon with launchctl
|
|
||||||
run:
|
|
||||||
sudo launchctl kickstart -k org.nixos.nix-daemon
|
|
||||||
if: matrix.os == 'macos-latest'
|
|
||||||
- run:
|
- run:
|
||||||
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixpkgs-unstable.tar.gz ci.nix --run 'true'
|
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixpkgs-unstable.tar.gz ci.nix --run 'true'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue