Skip to content

Upgrade: Bump scalacenter/sbt-dependency-submission from 2 to 3 #1057

Upgrade: Bump scalacenter/sbt-dependency-submission from 2 to 3

Upgrade: Bump scalacenter/sbt-dependency-submission from 2 to 3 #1057

Workflow file for this run

name: Build-All
on:
push:
branches-ignore:
- main
pull_request:
branches:
- main
env:
GH_JVM_OPTS: "-Xss64m -Xms1024m -XX:MaxMetaspaceSize=1G -Xmx4G -XX:MaxInlineLevel=18 -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
scala:
- { name: "Scala", java-version: "11", java-distribution: "temurin", report: "" }
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.scala.java-version }}
distribution: ${{ matrix.scala.java-distribution }}
- name: Cache SBT
uses: actions/cache@v4
with:
path: |
~/.ivy2/cache
~/.cache/coursier
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }}
restore-keys: |
${{ runner.os }}-sbt
- name: "[Push] Build All for ${{ matrix.scala.name }} - ${{ 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}"
java -version
echo "JVM_OPTS=${JVM_OPTS}"
echo "SBT_OPTS=${SBT_OPTS}"
.github/workflows/sbt-build-all.sh
- name: "[PR] Build All for ${{ matrix.scala.name }} - 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 "Rull request to the '${CURRENT_BRANCH_NAME}' branch"
echo "RUN_ID=${RUN_ID}"
echo "RUN_NUMBER=${RUN_NUMBER}"
echo "PR #${PR_NUMBER}"
java -version
echo "JVM_OPTS=${JVM_OPTS}"
echo "SBT_OPTS=${SBT_OPTS}"
.github/workflows/sbt-build-all.sh ${{ matrix.scala.report }}
report:
runs-on: ubuntu-latest
strategy:
matrix:
scala:
- { name: "Scala", version: "2.13.10", java-version: "11", java-distribution: "temurin", report: "report" }
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.scala.java-version }}
distribution: ${{ matrix.scala.java-distribution }}
- name: Cache SBT
uses: actions/cache@v4
with:
path: |
~/.ivy2/cache
~/.cache/coursier
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }}
restore-keys: |
${{ runner.os }}-sbt
- name: "[PR] Test Report for 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 "Rull request to the '${CURRENT_BRANCH_NAME}' branch"
echo "RUN_ID=${RUN_ID}"
echo "RUN_NUMBER=${RUN_NUMBER}"
echo "PR #${PR_NUMBER}"
java -version
echo "JVM_OPTS=${JVM_OPTS}"
echo "SBT_OPTS=${SBT_OPTS}"
.github/workflows/sbt-build-all-with-scala-version.sh ${{ matrix.scala.version }} ${{ matrix.scala.report }}
- if: ${{ github.event_name == 'pull_request' && matrix.scala.report == 'report' }}
uses: codecov/codecov-action@v4