free up more space on builder #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build systems | |
on: | |
pull_request: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get free space | |
run: df -h | |
- name: Remove unwanted software | |
run: | | |
rm -rf /opt/hostedtoolcache | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /usr/local/lib/android | |
sudo rm -rf /opt/ghc | |
sudo docker image prune --all --force | |
- name: Get free space | |
run: df -h | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v27 | |
- name: Setup Magic Nix Cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Setup Cachix | |
uses: cachix/cachix-action@v15 | |
with: | |
name: anna328p | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Update volatile inputs | |
run: nix flake update keydb | |
- name: Build hermes configuration | |
run: nix build --accept-flake-config 'path:.#nixosConfigurations.hermes.config.system.build.toplevel' | |
- name: Confirm success | |
run: echo 'OK' |