Upgrade: Bump actions/checkout from 6 to 7 #303
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
| name: Build All | |
| on: | |
| push: | |
| branches-ignore: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| env: | |
| GH_JVM_OPTS: "-Xss64m -Xms1024m -XX:MaxMetaspaceSize=2G -Xmx4G" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| scala: | |
| - { name: "Scala 2", version: "2.12.20", binary-version: "2.12", java-version: "11", java-distribution: "temurin" } | |
| - { name: "Scala 2", version: "2.13.18", binary-version: "2.13", java-version: "11", java-distribution: "temurin" } | |
| - { name: "Scala 3", version: "3.3.5", binary-version: "3", java-version: "11", java-distribution: "temurin" } | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.scala.java-version }} | |
| distribution: ${{ matrix.scala.java-distribution }} | |
| cache: sbt | |
| - uses: sbt/setup-sbt@v1 | |
| - name: "[Push] Build for ${{ matrix.scala.name }} ${{ matrix.scala.version }} - ${{ github.run_number }}" | |
| if: github.event_name == 'push' | |
| env: | |
| CURRENT_BRANCH_NAME: ${{ github.ref }} | |
| RUN_ID: ${{ github.run_id }} | |
| RUN_NUMBER: ${{ github.run_number }} | |
| JVM_OPTS: ${{ env.GH_JVM_OPTS }} | |
| run: | | |
| echo "[BEFORE]CURRENT_BRANCH_NAME=${CURRENT_BRANCH_NAME}" | |
| export CURRENT_BRANCH_NAME="${CURRENT_BRANCH_NAME#refs/heads/}" | |
| echo " [AFTER]CURRENT_BRANCH_NAME=${CURRENT_BRANCH_NAME}" | |
| echo "RUN_ID=${RUN_ID}" | |
| echo "RUN_NUMBER=${RUN_NUMBER}" | |
| echo "Push #${PUSH_NUMBER}" | |
| PROJECT_VERSION=$(git log --format=%H -1) | |
| .github/workflows/sbt-build.sh ${{ matrix.scala.version }} $PROJECT_VERSION | |
| - name: "[PR] Build for ${{ matrix.scala.name }} ${{ matrix.scala.version }} - PR-#${{ github.event.pull_request.number }} - ${{ github.run_number }}" | |
| if: github.event_name == 'pull_request' | |
| env: | |
| CURRENT_BRANCH_NAME: ${{ github.base_ref }} | |
| RUN_ID: ${{ github.run_id }} | |
| RUN_NUMBER: ${{ github.run_number }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| JVM_OPTS: ${{ env.GH_JVM_OPTS }} | |
| run: | | |
| echo "Pull request to the '${CURRENT_BRANCH_NAME}' branch" | |
| echo "RUN_ID=${RUN_ID}" | |
| echo "RUN_NUMBER=${RUN_NUMBER}" | |
| echo "PR #${PR_NUMBER}" | |
| PROJECT_VERSION=$(git log --format=%H -1) | |
| .github/workflows/sbt-build.sh ${{ matrix.scala.version }} $PROJECT_VERSION |