Compare commits
6 Commits
sandbox
...
install_ur
Author | SHA1 | Date | |
---|---|---|---|
afb82faed7 | |||
ebed63b0a2 | |||
5c21a08208 | |||
9affe1ce81 | |||
ef735e86b9 | |||
4856b67e4a |
@ -17,8 +17,8 @@ jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: cachix/install-nix-action@v6
|
||||
- uses: actions/checkout@v2
|
||||
- uses: cachix/install-nix-action@v7
|
||||
- run: nix-build
|
||||
```
|
||||
|
||||
|
@ -1,6 +1,9 @@
|
||||
name: 'Install Nix'
|
||||
description: 'Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.'
|
||||
author: 'Domen Kožar'
|
||||
inputs:
|
||||
install_url:
|
||||
description: 'Installation URL that will contain a script to install Nix'
|
||||
branding:
|
||||
color: 'blue'
|
||||
icon: 'sun'
|
||||
|
@ -26,14 +26,11 @@ nixConf
|
||||
# Needed due to multi-user being too defensive
|
||||
export ALLOW_PREEXISTING_INSTALLATION=1
|
||||
|
||||
sh <(curl https://nixos.org/nix/install) --daemon
|
||||
sh <(curl -L ${INPUT_INSTALL_URL:-https://nixos.org/nix/install}) --daemon
|
||||
|
||||
# write nix.conf again as installation overwrites it
|
||||
nixConf
|
||||
|
||||
# Enable sandbox on Darwin/Linux
|
||||
sudo sh -c 'echo sandbox = true >> /etc/nix/nix.conf'
|
||||
|
||||
# macOS needs certificates hints
|
||||
if [[ $OSTYPE =~ darwin ]]; then
|
||||
cert_file=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
|
||||
|
Reference in New Issue
Block a user