mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-16 21:38:21 +00:00
update install-nix-action
This commit is contained in:
parent
cb7b3d2471
commit
d00d0c8be8
1 changed files with 18 additions and 12 deletions
30
.github/workflows/test.yml
vendored
30
.github/workflows/test.yml
vendored
|
@ -5,45 +5,51 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: macos-10.15
|
runs-on: macos-10.15
|
||||||
timeout-minutes: 10
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: cachix/install-nix-action@v9
|
- uses: cachix/install-nix-action@v12
|
||||||
- run: nix-build ./release.nix -I darwin=. -A tests
|
- run: nix-build ./release.nix -I nixpkgs=channel:nixpkgs-20.09-darwin -I darwin=. -A tests
|
||||||
- run: nix-build ./release.nix -I darwin=. -A manpages
|
- run: nix-build ./release.nix -I nixpkgs=channel:nixpkgs-20.09-darwin -I darwin=. -A manpages
|
||||||
- run: nix-build ./release.nix -I darwin=. -A examples.simple
|
- run: nix-build ./release.nix -I nixpkgs=channel:nixpkgs-20.09-darwin -I darwin=. -A examples.simple
|
||||||
install:
|
install:
|
||||||
runs-on: macos-10.15
|
runs-on: macos-10.15
|
||||||
timeout-minutes: 10
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: cachix/install-nix-action@v8
|
- uses: cachix/install-nix-action@v12
|
||||||
- run: |
|
- run: |
|
||||||
|
nix-channel --add https://nixos.org/channels/nixpkgs-20.09-darwin nixpkgs
|
||||||
nix-channel --update
|
nix-channel --update
|
||||||
echo "FIXME workaround channel permission error"
|
echo "FIXME workaround channel permission error"
|
||||||
- run: |
|
- run: |
|
||||||
|
export NIX_PATH=$HOME/.nix-defexpr/channels
|
||||||
nix-shell -A installer
|
nix-shell -A installer
|
||||||
nix-shell -A installer.check
|
nix-shell -A installer.check
|
||||||
- run: |
|
- run: |
|
||||||
. /etc/static/bashrc
|
. /etc/static/bashrc
|
||||||
darwin-rebuild switch -I darwin=.
|
darwin-rebuild switch -I darwin=.
|
||||||
- run: |
|
- run: |
|
||||||
|
export NIX_PATH=$HOME/.nix-defexpr/channels
|
||||||
nix-shell -A uninstaller
|
nix-shell -A uninstaller
|
||||||
nix-shell -A uninstaller.check
|
nix-shell -A uninstaller.check
|
||||||
install-flake:
|
install-flake:
|
||||||
runs-on: macos-10.15
|
runs-on: macos-10.15
|
||||||
timeout-minutes: 10
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: cachix/install-nix-action@v8
|
- uses: cachix/install-nix-action@v12
|
||||||
- run: |
|
- run: |
|
||||||
|
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
|
||||||
nix-channel --update
|
nix-channel --update
|
||||||
echo "FIXME workaround channel permission error"
|
echo "FIXME workaround channel permission error"
|
||||||
nix-shell -A installer
|
- run: |
|
||||||
|
NIX_PATH=$HOME/.nix-defexpr/channels nix-shell -A installer
|
||||||
echo "TODO installed doesn't support flakes, handle multi-user install"
|
echo "TODO installed doesn't support flakes, handle multi-user install"
|
||||||
- run: |
|
- run: |
|
||||||
nix-shell -p nixFlakes --run 'nix --experimental-features "nix-command flakes" registry add darwin $PWD'
|
nix-build channel:nixpkgs-unstable -A nixUnstable -o nix-unstable
|
||||||
nix-shell -p nixFlakes --run 'nix --experimental-features "nix-command flakes" build ./modules/examples#darwinConfigurations.simple.system'
|
./nix-unstable/bin/nix --experimental-features 'nix-command flakes' registry add darwin $PWD
|
||||||
|
./nix-unstable/bin/nix --experimental-features 'nix-command flakes' build ./modules/examples#darwinConfigurations.simple.system
|
||||||
- run: |
|
- run: |
|
||||||
./result/sw/bin/darwin-rebuild switch --flake ./modules/examples#simple
|
./result/sw/bin/darwin-rebuild switch --flake ./modules/examples#simple
|
||||||
- run: |
|
- run: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue