mirror of
https://github.com/DeterminateSystems/ci.git
synced 2025-06-14 05:19:14 +02:00
clear space on build before checkout
This commit is contained in:
parent
4d811a5478
commit
97b83c042e
1 changed files with 10 additions and 1 deletions
11
.github/workflows/workflow.yml
vendored
11
.github/workflows/workflow.yml
vendored
|
@ -124,6 +124,15 @@ jobs:
|
||||||
contents: "read"
|
contents: "read"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Maximize build space
|
||||||
|
uses: easimon/maximize-build-space@master
|
||||||
|
with:
|
||||||
|
root-reserve-mb: 512
|
||||||
|
swap-size-mb: 1024
|
||||||
|
remove-dotnet: 'true'
|
||||||
|
remove-android: 'true'
|
||||||
|
remove-haskell: 'true'
|
||||||
|
remove-docker-images: 'true'
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
with:
|
with:
|
||||||
|
@ -160,7 +169,7 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
if: |
|
if: |
|
||||||
contains(needs.*.result, 'failure') ||
|
contains(needs.*.result, 'failure') ||
|
||||||
contains(needs.*.result, 'cancelled')
|
contains(needs.*.result, 'cancelled')
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
if: ${{ !github.repository.fork && inputs.visibility != '' && (github.ref == format('refs/heads/{0}', inputs.default-branch) || startsWith(github.ref, 'refs/tags/')) }}
|
if: ${{ !github.repository.fork && inputs.visibility != '' && (github.ref == format('refs/heads/{0}', inputs.default-branch) || startsWith(github.ref, 'refs/tags/')) }}
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
|
Loading…
Add table
Reference in a new issue