Fix scrample execution in EBcLfSA (#37) #94
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ******************************************************************************* | |
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | |
| # | |
| # See the NOTICE file(s) distributed with this work for additional | |
| # information regarding copyright ownership. | |
| # | |
| # This program and the accompanying materials are made available under the | |
| # terms of the Apache License Version 2.0 which is available at | |
| # https://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # ******************************************************************************* | |
| # Workflow configuration for S-CORE CI - Bazel Build & Test baselibs | |
| # This workflow runs Bazel build and test when triggered by specific pull request events. | |
| name: Bazel Build some repositories | |
| on: | |
| workflow_dispatch: | |
| push: | |
| pull_request: | |
| 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: Checkout repository | |
| uses: actions/[email protected] | |
| - name: Setup Bazel | |
| uses: bazel-contrib/[email protected] | |
| with: | |
| # Avoid downloading Bazel every time. | |
| bazelisk-cache: true | |
| # Store build cache per workflow. | |
| disk-cache: ${{ github.workflow }} | |
| # Share repository cache between workflows. | |
| repository-cache: true | |
| - name: Bazel build targets | |
| run: | | |
| ./integration_test.sh | |
| - name: Show disk space after build | |
| if: always() | |
| run: | | |
| echo 'Disk space after build:' | |
| df -h | |
| - name: Publish build summary | |
| if: always() | |
| run: | | |
| if [ -f _logs/build_summary.md ]; then | |
| { | |
| echo '## Bazel Build Summary' | |
| echo | |
| # Append the markdown directly so tables render (no leading indentation) | |
| cat _logs/build_summary.md | |
| } >> "$GITHUB_STEP_SUMMARY" | |
| 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 | |
| with: | |
| name: bazel-build-logs | |
| path: _logs/ | |
| if-no-files-found: warn | |
| retention-days: 14 |