Update docs: Add logo image with 96x96 size #764
Workflow file for this run
This file contains 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: | |
- "**" | |
pull_request: | |
branches: | |
- main | |
env: | |
GH_JAVA_VERSION: "17" | |
GH_SBT_OPTS: "-Xss64m -Xms4G -XX:MaxMetaspaceSize=1G -Xmx6G -XX:MaxInlineLevel=18 -XX:+UnlockExperimentalVMOptions" | |
GH_JVM_OPTS: "-Xss64m -Xms4G -XX:MaxMetaspaceSize=1G -Xmx6G -XX:MaxInlineLevel=18 -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler" | |
CLI_SCALA_VERSION: "3.3.0" | |
CLI_SCALA_BINARY_VERSION: "3" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
scala: | |
- { name: "Scala 3", version: "3.3.0", binary-version: "3", java-version: "17" } | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: olafurpg/setup-scala@v14 | |
with: | |
java-version: ${{ matrix.scala.java-version }} | |
- name: Cache SBT | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.cache/coursier | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }} | |
restore-keys: | | |
${{ runner.os }}-sbt-${{ matrix.scala.binary-version }}- | |
- name: "[Push] Build All 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 }} | |
SBT_OPTS: ${{ env.GH_SBT_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}" | |
echo "JVM_OPTS=${JVM_OPTS}" | |
echo "SBT_OPTS=${SBT_OPTS}" | |
java -version | |
.github/workflows/sbt-build-all.sh ${{ matrix.scala.version }} | |
- name: "[PR] Build All 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 }} | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
JVM_OPTS: ${{ env.GH_JVM_OPTS }} | |
SBT_OPTS: ${{ env.GH_SBT_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}" | |
echo "JVM_OPTS=${JVM_OPTS}" | |
echo "SBT_OPTS=${SBT_OPTS}" | |
java -version | |
.github/workflows/sbt-build-all.sh ${{ matrix.scala.version }} | |
build-package-bin: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: olafurpg/setup-scala@v14 | |
with: | |
java-version: ${{ env.GH_JAVA_VERSION }} | |
- name: Cache SBT | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.cache/coursier | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ env.CLI_SCALA_BINARY_VERSION }}-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('**/build.properties') }} | |
restore-keys: | | |
${{ runner.os }}-sbt-${{ env.CLI_SCALA_BINARY_VERSION }}- | |
- name: "[Push] Build bin package - ${{ 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 }} | |
SBT_OPTS: ${{ env.GH_SBT_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}" | |
echo "JVM_OPTS=${JVM_OPTS}" | |
echo "SBT_OPTS=${SBT_OPTS}" | |
java -version | |
sbt \ | |
++${{ env.CLI_SCALA_VERSION }}! \ | |
clean \ | |
universal:packageBin | |
cd modules/whatsub-cli/target/universal | |
unzip whatsub-cli-*.zip | |
rm whatsub-cli-*.zip | |
mv whatsub-cli-* whatsub-cli | |
cd whatsub-cli/bin | |
./whatsub --version | |
- name: "[PR] Build bin package 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 }} | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
JVM_OPTS: ${{ env.GH_JVM_OPTS }} | |
SBT_OPTS: ${{ env.GH_SBT_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}" | |
echo "JVM_OPTS=${JVM_OPTS}" | |
echo "SBT_OPTS=${SBT_OPTS}" | |
java -version | |
sbt \ | |
++${{ env.CLI_SCALA_VERSION }}! \ | |
clean \ | |
universal:packageBin | |
cd modules/whatsub-cli/target/universal | |
unzip whatsub-cli-*.zip | |
rm whatsub-cli-*.zip | |
mv whatsub-cli-* whatsub-cli | |
cd whatsub-cli/bin | |
./whatsub --version |