Skip to content

Commit

Permalink
fix(.github): create per-user gcroot dir
Browse files Browse the repository at this point in the history
Lorri needs this to create gcroots for evaluations.
  • Loading branch information
Profpatsch committed Apr 3, 2024
1 parent 943ed53 commit d2b644c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ let
name = "Nix";
uses = "cachix/install-nix-action@v26";
};
create-nix-gcroots-user-dir = {
name = "Create user gcroot dir";
run = ''
sudo mkdir /nix/var/nix/gcroots/per-user/$USER
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER
'';
};
setup-cachix = {
name = "Cachix";
uses = "cachix/cachix-action@v14";
Expand Down Expand Up @@ -53,6 +60,7 @@ let
steps = [
(checkout {})
setup-nix
create-nix-gcroots-user-dir
setup-cachix
add-rustc-to-path
print-path
Expand Down Expand Up @@ -80,6 +88,7 @@ let
steps = [
(checkout {})
setup-nix
create-nix-gcroots-user-dir
setup-cachix
add-rustc-to-path
print-path
Expand Down Expand Up @@ -112,6 +121,7 @@ let
}
)
setup-nix
create-nix-gcroots-user-dir
setup-cachix
{
name = "Build";
Expand All @@ -137,6 +147,7 @@ let
steps = [
(checkout {})
setup-nix
create-nix-gcroots-user-dir
setup-cachix
{
name = "Build w/ overlay (stable)";
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
fetch-depth: 0
- name: Nix
uses: cachix/install-nix-action@v26
- name: Create user gcroot dir
run: |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER
- name: Cachix
uses: cachix/cachix-action@v14
with:
Expand All @@ -32,6 +36,10 @@ jobs:
fetch-depth: 0
- name: Nix
uses: cachix/install-nix-action@v26
- name: Create user gcroot dir
run: |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER
- name: Cachix
uses: cachix/cachix-action@v14
with:
Expand All @@ -53,6 +61,10 @@ jobs:
fetch-depth: null
- name: Nix
uses: cachix/install-nix-action@v26
- name: Create user gcroot dir
run: |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER
- name: Cachix
uses: cachix/cachix-action@v14
with:
Expand All @@ -70,6 +82,10 @@ jobs:
fetch-depth: null
- name: Nix
uses: cachix/install-nix-action@v26
- name: Create user gcroot dir
run: |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER
- name: Cachix
uses: cachix/cachix-action@v14
with:
Expand All @@ -87,6 +103,10 @@ jobs:
fetch-depth: null
- name: Nix
uses: cachix/install-nix-action@v26
- name: Create user gcroot dir
run: |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER
- name: Cachix
uses: cachix/cachix-action@v14
with:
Expand Down Expand Up @@ -119,6 +139,10 @@ jobs:
fetch-depth: null
- name: Nix
uses: cachix/install-nix-action@v26
- name: Create user gcroot dir
run: |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER
- name: Cachix
uses: cachix/cachix-action@v14
with:
Expand Down Expand Up @@ -151,6 +175,10 @@ jobs:
fetch-depth: null
- name: Nix
uses: cachix/install-nix-action@v26
- name: Create user gcroot dir
run: |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER
- name: Cachix
uses: cachix/cachix-action@v14
with:
Expand Down

0 comments on commit d2b644c

Please sign in to comment.