Skip to content

Commit 0458536

Browse files
authored
Free up more disk space for goreleaser action (#2193)
1 parent f5e038a commit 0458536

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build-release.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ jobs:
1414
run: |
1515
sudo rm -rf ${RUNNER_TOOL_CACHE}
1616
sudo rm -rf /usr/share/dotnet
17+
sudo rm -rf /usr/local/share/chromium
18+
sudo rm -rf /usr/local/share/powershell
19+
sudo rm -rf /usr/local/share/vcpkg
20+
sudo rm -rf /usr/local/share/miniconda
1721
sudo rm -rf /opt/ghc
22+
sudo rm -rf /opt/hostedtoolcache/CodeQL
1823
sudo rm -rf /usr/local/share/boost
1924
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
2025
sudo docker image prune --all --force
26+
sudo docker builder prune -a -f
2127
sudo apt-get clean
2228
df -h
2329
- uses: actions/checkout@v5
@@ -38,5 +44,9 @@ jobs:
3844
echo 'BUILD_TIME=$(date --iso-8601=seconds)' >> .release-env
3945
echo 'VERSION=${{ github.event.release.tag_name }}' >> .release-env
4046
echo 'GITHUB_TOKEN=${{ secrets.FLOW_CLI_RELEASE }}' >> .release-env
47+
# Create temp dir in workspace; set container-visible paths
48+
mkdir -p ${GITHUB_WORKSPACE}/tmp
49+
echo "TMPDIR=/go/src/github.com/onflow/flow-cli/tmp" >> .release-env
50+
echo "GOTMPDIR=/go/src/github.com/onflow/flow-cli/tmp" >> .release-env
4151
- name: Build and Release
4252
run: make release

0 commit comments

Comments
 (0)