mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 01:53:15 -06:00
test better disk reclamation
This commit is contained in:
parent
5783bf1b77
commit
fb09facde4
4 changed files with 37 additions and 14 deletions
45
.github/workflows/build.yml
vendored
45
.github/workflows/build.yml
vendored
|
@ -29,20 +29,39 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# The default disk size of these runners is ~14GB
|
||||
# Cleanup the disk, see upstream discussion https://github.com/actions/runner-images/issues/2840.
|
||||
- name: Cleanup Disk Space
|
||||
run: |
|
||||
echo "Before removing files:"
|
||||
df -h
|
||||
sudo rm -rf /usr/share/dotnet
|
||||
sudo rm -rf /opt/ghc
|
||||
sudo rm -rf /opt
|
||||
sudo rm -rf "/usr/local/share/boost"
|
||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||
echo "After removing files:"
|
||||
df -h
|
||||
# # The default disk size of these runners is ~14GB
|
||||
# # Cleanup the disk, see upstream discussion https://github.com/actions/runner-images/issues/2840.
|
||||
# - name: Cleanup Disk Space
|
||||
# run: |
|
||||
# echo "Before removing files:"
|
||||
# df -h
|
||||
# sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||
# sudo rm -rf /opt
|
||||
# sudo rm -rf /usr/share/dotnet
|
||||
# sudo rm -rf /usr/local/{lib/android,share/boost}
|
||||
# sudo docker image prune --all --force
|
||||
# echo "After removing files:"
|
||||
# df -h
|
||||
|
||||
- name: Maximize build space
|
||||
uses: AdityaGarg8/remove-unwanted-software@v3
|
||||
with:
|
||||
remove-android: 'true'
|
||||
remove-dotnet: 'true'
|
||||
remove-haskell: 'true'
|
||||
remove-codeql: 'true'
|
||||
remove-docker-images: 'true'
|
||||
remove-large-packages: 'true'
|
||||
remove-cached-tools: 'true'
|
||||
remove-swapfile: 'true'
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
echo "Free space:"
|
||||
df -h
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
|
|
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
|
@ -48,4 +48,4 @@ jobs:
|
|||
|
||||
- name: Build
|
||||
run: |
|
||||
cachix watch-exec daylin -- nix build '.#checks.x86_64-linux.packageCheck'
|
||||
cachix watch-exec daylin -- nix build --accept-flake-config '.#checks.x86_64-linux.packageCheck'
|
||||
|
|
1
.github/workflows/push.yml
vendored
1
.github/workflows/push.yml
vendored
|
@ -14,6 +14,7 @@ jobs:
|
|||
secrets: inherit
|
||||
|
||||
build:
|
||||
needs: checks
|
||||
strategy:
|
||||
max-parallel: 1
|
||||
matrix:
|
||||
|
|
|
@ -95,6 +95,9 @@ rec {
|
|||
|
||||
inputs.roc.packages.${pkgs.system}.full
|
||||
inputs.roc.packages.${pkgs.system}.lang-server
|
||||
|
||||
inputs.zls.outputs.packages.${pkgs.system}.default
|
||||
inputs.zig2nix.outputs.packages.${pkgs.system}.zig.master.bin
|
||||
];
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue