diff --git a/.github/workflows/test_integration.yml b/.github/workflows/test_integration.yml index 57897e086c..dceb9ff64a 100644 --- a/.github/workflows/test_integration.yml +++ b/.github/workflows/test_integration.yml @@ -18,6 +18,7 @@ name: build latest mains on: workflow_dispatch: pull_request: + types: [opened, reopened, synchronize] release: types: [created] push: @@ -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/checkout@v4.2.2 - name: Setup Bazel @@ -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: | @@ -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