Skip to content

Commit

Permalink
CI: Restore space making stuff
Browse files Browse the repository at this point in the history
Turns out we really need it...

Though it's still in a weird state upstream, so instead I made my own.

The Nix specifics here were authored by Zhaofeng Li, thus the co-author.

Co-Authored-By: Zhaofeng Li <[email protected]>
  • Loading branch information
samueldr and zhaofengli committed Jan 24, 2025
1 parent 9c5f217 commit bcf9d81
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,35 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Scrounge-up some more space
uses: samueldr/[email protected]
with:
enable-lvm-span: true
lvm-span-mountpoint: /nix

- name: Set Nix store ownership
run: |
sudo chown root:root /nix
- name: Override lix-daemon build directory
run: |
(
PS4=" $ "
set -eux -o pipefail
sudo mkdir -p /nix/tmp
sudo chmod ug=rwx,o=rwxt /nix/tmp
sudo mkdir -p /etc/systemd/system/lix-daemon.service.d
sudo tee /etc/systemd/system/lix-daemon.service.d/override.conf >/dev/null <<EOF
[Service]
Environment=TMPDIR=/lix/tmp
EOF
sudo systemctl daemon-reload
sudo systemctl restart lix-daemon
)
- name: Install Lix
uses: samueldr/lix-gha-installer-action@v1

Expand Down

0 comments on commit bcf9d81

Please sign in to comment.