ci: fix /homeless-shelter error in container builds
Some checks failed
Nix CI / build (push) Failing after 4m24s
Some checks failed
Nix CI / build (push) Failing after 4m24s
- Set HOME=/root explicitly to prevent Nix installer from creating /homeless-shelter - Add Prepare environment step to clean up before Nix install - Disable sandbox explicitly (not available in Docker containers)
This commit is contained in:
parent
908ff483e8
commit
a38a9b3105
1 changed files with 9 additions and 0 deletions
|
|
@ -7,8 +7,15 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
HOME: /root
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Prepare environment
|
||||||
|
run: |
|
||||||
|
mkdir -p "$HOME"
|
||||||
|
rm -rf /homeless-shelter
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
|
@ -16,6 +23,8 @@ jobs:
|
||||||
uses: cachix/install-nix-action@v31
|
uses: cachix/install-nix-action@v31
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
extra_nix_config: |
|
||||||
|
sandbox = false
|
||||||
|
|
||||||
- name: Enable flakes
|
- name: Enable flakes
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue