Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 6 additions & 22 deletions .github/workflows/test_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ name: build latest mains
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]
release:
types: [created]
push:
Expand All @@ -27,23 +28,9 @@ jobs:
integration_test:
runs-on: ubuntu-latest
steps:
- name: Show disk space before build
run: |
echo 'Disk space before build:'
df -h
- name: Removing unneeded software
run: |
echo "Removing unneeded software... "
if [ -d /usr/share/dotnet ]; then echo "Removing dotnet..."; start=$(date +%s); sudo rm -rf /usr/share/dotnet; end=$(date +%s); echo "Duration: $((end-start))s"; fi
#if [ -d /usr/local/lib/android ]; then echo "Removing android..."; start=$(date +%s); sudo rm -rf /usr/local/lib/android; end=$(date +%s); echo "Duration: $((end-start))s"; fi
if [ -d /opt/ghc ]; then echo "Removing haskell (ghc)..."; start=$(date +%s); sudo rm -rf /opt/ghc; end=$(date +%s); echo "Duration: $((end-start))s"; fi
if [ -d /usr/local/.ghcup ]; then echo "Removing haskell (ghcup)..."; start=$(date +%s); sudo rm -rf /usr/local/.ghcup; end=$(date +%s); echo "Duration: $((end-start))s"; fi
if [ -d /usr/share/swift ]; then echo "Removing swift..."; start=$(date +%s); sudo rm -rf /usr/share/swift; end=$(date +%s); echo "Duration: $((end-start))s"; fi
if [ -d /usr/local/share/chromium ]; then echo "Removing chromium..."; start=$(date +%s); sudo rm -rf /usr/local/share/chromium; end=$(date +%s); echo "Duration: $((end-start))s"; fi
- name: Show disk space after cleanup
run: |
echo 'Disk space after cleanup:'
df -h
- name: Clean disk space
uses: eclipse-score/more-disk-space@v1

- name: Checkout repository
uses: actions/[email protected]
- name: Setup Bazel
Expand All @@ -70,11 +57,7 @@ jobs:
- name: Bazel build targets
run: |
scripts/integration_test.sh --known-good known_good.updated.json
- name: Show disk space after build
if: always()
run: |
echo 'Disk space after build:'
df -h

- name: Publish build summary
if: always()
run: |
Expand All @@ -88,6 +71,7 @@ jobs:
else
echo "No build summary file found (_logs/build_summary.md)" >> "$GITHUB_STEP_SUMMARY"
fi

- name: Upload logs artifact
if: always()
uses: actions/upload-artifact@v4
Expand Down
Loading