Skip to content

Commit

Permalink
btrfs
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Aug 20, 2024
1 parent cbc5ac1 commit b355acd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
20 changes: 15 additions & 5 deletions .github/actions/setup_nix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,22 @@ runs:
shell: bash
run: |
sudo df -h
sudo mkdir /nixbld
truncate -s 3G btrfs.img
sudo mkfs.btrfs -f btrfs.img
sudo mount btrfs.img /nixbld
echo "Removing unwanted software... "
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker system prune --all --force
sudo df -h
echo "Setting up btrfs nix builder volume..."
sudo mkdir -p /mnt/nixbld
sudo truncate -s 20G /mnt/btrfs.img
sudo mkfs.btrfs -f /mnt/btrfs.img
sudo mount /mnt/btrfs.img /mnt/nixbld
sudo mkdir -p /etc/systemd/system/nix-daemon.service.d
echo -e "[Service]\nEnvironment=TMPDIR=/nixbld" | sudo tee /etc/systemd/system/nix-daemon.service.d/btrfs.conf
echo -e "[Service]\nEnvironment=TMPDIR=/mnt/nixbld" | sudo tee /etc/systemd/system/nix-daemon.service.d/btrfs.conf
sudo systemctl daemon-reload
sudo systemctl restart nix-daemon
sudo df -h
9 changes: 0 additions & 9 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ jobs:
runs-on: ubuntu-22.04
timeout-minutes: 25
steps:
# This job needs quite some space, so we remove some unnecessary things.
- uses: easimon/maximize-build-space@fc881a613ad2a34aca9c9624518214ebc21dfc0c # v10
with:
root-reserve-mb: 20000
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
Expand Down

0 comments on commit b355acd

Please sign in to comment.