Skip to content

Build and dependency updates #1700

Build and dependency updates

Build and dependency updates #1700

Workflow file for this run

# This file was automatically generated by sbt-github-actions using the
# githubWorkflowGenerate task. You should add and commit this file to
# your git repository. It goes without saying that you shouldn't edit
# this file by hand! Instead, if you wish to make changes, you should
# change your sbt build configuration to revise the workflow description
# to meet your needs, then regenerate this file.
name: Continuous Integration
on:
pull_request:
branches: ['**', '!update/**', '!pr/**']
push:
branches: ['**', '!update/**', '!pr/**']
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
concurrency:
group: ${{ github.workflow }} @ ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
scala: [2.13, 3]
java:
- temurin@11
- temurin@21
- temurin@23
- graal_22.3.3@11
- graalvm@21
- graalvm@23
- semeru@11
- semeru@21
- semeru@23
include:
- os: macos-14
java: temurin@23
scala: 2.13
- os: windows-latest
java: temurin@23
scala: 2.13
- os: macos-14
java: temurin@23
scala: 3
- os: windows-latest
java: temurin@23
scala: 3
exclude:
- os: windows-latest
java: graal_22.3.3@11
- os: windows-latest
java: graalvm@21
- os: windows-latest
java: graalvm@23
- os: windows-latest
java: semeru@11
- os: windows-latest
java: semeru@21
- os: windows-latest
java: semeru@23
- os: macos-14
java: graal_22.3.3@11
- os: macos-14
java: graalvm@21
- os: macos-14
java: graalvm@23
- os: macos-14
java: semeru@11
- os: macos-14
java: semeru@21
- os: macos-14
java: semeru@23
- os: macos-14
java: temurin@11
- os: macos-14
java: temurin@21
- os: macos-14
java: temurin@23
- os: windows-latest
java: temurin@11
- os: windows-latest
java: temurin@21
- os: windows-latest
java: temurin@23
- os: ubuntu-latest
java: semeru@11
scala: 3
- os: ubuntu-latest
java: graal_22.3.3@11
scala: 3
runs-on: ${{ matrix.os }}
timeout-minutes: 180
steps:
- name: Ignore line ending differences in git
if: contains(runner.os, 'windows')
shell: bash
run: git config --global core.autocrlf false
- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Setup Java (temurin@11)
id: setup-java-temurin-11
if: matrix.java == 'temurin@11'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: sbt
- name: sbt update
if: matrix.java == 'temurin@11' && steps.setup-java-temurin-11.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update
- name: Setup Java (temurin@21)
id: setup-java-temurin-21
if: matrix.java == 'temurin@21'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: sbt
- name: sbt update
if: matrix.java == 'temurin@21' && steps.setup-java-temurin-21.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update
- name: Setup Java (temurin@23)
id: setup-java-temurin-23
if: matrix.java == 'temurin@23'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 23
cache: sbt
- name: sbt update
if: matrix.java == 'temurin@23' && steps.setup-java-temurin-23.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update
- name: Setup GraalVM (graal_22.3.3@11)
id: setup-graalvm-22_3_3-11
if: matrix.java == 'graal_22.3.3@11'
uses: graalvm/setup-graalvm@v1
with:
version: 22.3.3
java-version: 11
cache: sbt
- name: sbt update
if: matrix.java == 'graal_22.3.3@11' && steps.setup-graalvm-22_3_3-11.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update
- name: Setup Java (graalvm@21)
id: setup-java-graalvm-21
if: matrix.java == 'graalvm@21'
uses: actions/setup-java@v4
with:
distribution: graalvm
java-version: 21
cache: sbt
- name: sbt update
if: matrix.java == 'graalvm@21' && steps.setup-java-graalvm-21.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update
- name: Setup Java (graalvm@23)
id: setup-java-graalvm-23
if: matrix.java == 'graalvm@23'
uses: actions/setup-java@v4
with:
distribution: graalvm
java-version: 23
cache: sbt
- name: sbt update
if: matrix.java == 'graalvm@23' && steps.setup-java-graalvm-23.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update
- name: Setup Java (semeru@11)
id: setup-java-semeru-11
if: matrix.java == 'semeru@11'
uses: actions/setup-java@v4
with:
distribution: semeru
java-version: 11
cache: sbt
- name: sbt update
if: matrix.java == 'semeru@11' && steps.setup-java-semeru-11.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update
- name: Setup Java (semeru@21)
id: setup-java-semeru-21
if: matrix.java == 'semeru@21'
uses: actions/setup-java@v4
with:
distribution: semeru
java-version: 21
cache: sbt
- name: sbt update
if: matrix.java == 'semeru@21' && steps.setup-java-semeru-21.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update
- name: Setup Java (semeru@23)
id: setup-java-semeru-23
if: matrix.java == 'semeru@23'
uses: actions/setup-java@v4
with:
distribution: semeru
java-version: 23
cache: sbt
- name: sbt update
if: matrix.java == 'semeru@23' && steps.setup-java-semeru-23.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update
- name: Check that workflows are up to date
shell: bash
run: sbt -v githubWorkflowCheck
- if: (!((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@23'))) && (!(contains(github.event.head_commit.message, 'full CI')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' ci
- if: (!((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@23'))) && (contains(github.event.head_commit.message, 'full CI'))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' ciFull
- if: ((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@23')) && (!(contains(github.event.head_commit.message, 'full CI')))
shell: bash
run: 'sbt -v ''++ ${{ matrix.scala }}'' -J-Xgcpolicy:balanced ci'
- if: ((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@23')) && (contains(github.event.head_commit.message, 'full CI'))
shell: bash
run: 'sbt -v ''++ ${{ matrix.scala }}'' -J-Xgcpolicy:balanced ciFull'
- if: matrix.scala != '3'
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' checkScalafix
- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressLinchk')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' runLincheckTests
- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressMcas')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' stressMcas/Jcstress/run
- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressCore')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' stressCore/Jcstress/run
- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressData')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' stressData/Jcstress/run
- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressExperiments')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' stressExperiments/Jcstress/run
- name: Upload JCStress results
if: (success() || failure()) && ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && (contains(github.event.head_commit.message, 'full CI') || (contains(github.event.head_commit.message, 'stressMcas') || contains(github.event.head_commit.message, 'stressCore') || contains(github.event.head_commit.message, 'stressData') || contains(github.event.head_commit.message, 'stressExperiments')))
uses: actions/upload-artifact@v4
with:
name: jcstress-results-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
path: results/
- name: ZIP Graal dumps
if: (success() || failure()) && (matrix.os == 'ubuntu-latest') && ((matrix.java == 'graal_22.3.3@11') || (matrix.java == 'graalvm@21') || (matrix.java == 'graalvm@23'))
shell: bash
run: zip -r graal_dumps.zip . -i 'graal_dumps/*'
- name: Upload Graal dumps
if: (success() || failure()) && (matrix.os == 'ubuntu-latest') && ((matrix.java == 'graal_22.3.3@11') || (matrix.java == 'graalvm@21') || (matrix.java == 'graalvm@23'))
uses: actions/upload-artifact@v4
with:
name: graal-dumps-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
path: graal_dumps.zip
if-no-files-found: error
dependency-submission:
name: Submit Dependencies
if: github.event.repository.fork == false && github.event_name != 'pull_request'
strategy:
matrix:
os: [ubuntu-22.04]
java: [temurin@11]
runs-on: ${{ matrix.os }}
permissions:
actions: none
checks: none
contents: write
deployments: none
id-token: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
steps:
- name: Ignore line ending differences in git
if: contains(runner.os, 'windows')
run: git config --global core.autocrlf false
- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Setup Java (temurin@11)
id: setup-java-temurin-11
if: matrix.java == 'temurin@11'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: sbt
- name: sbt update
if: matrix.java == 'temurin@11' && steps.setup-java-temurin-11.outputs.cache-hit == 'false'
run: sbt -v +update
- name: Setup Java (temurin@21)
id: setup-java-temurin-21
if: matrix.java == 'temurin@21'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: sbt
- name: sbt update
if: matrix.java == 'temurin@21' && steps.setup-java-temurin-21.outputs.cache-hit == 'false'
run: sbt -v +update
- name: Setup Java (temurin@23)
id: setup-java-temurin-23
if: matrix.java == 'temurin@23'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 23
cache: sbt
- name: sbt update
if: matrix.java == 'temurin@23' && steps.setup-java-temurin-23.outputs.cache-hit == 'false'
run: sbt -v +update
- name: Setup GraalVM (graal_22.3.3@11)
id: setup-graalvm-22_3_3-11
if: matrix.java == 'graal_22.3.3@11'
uses: graalvm/setup-graalvm@v1
with:
version: 22.3.3
java-version: 11
cache: sbt
- name: sbt update
if: matrix.java == 'graal_22.3.3@11' && steps.setup-graalvm-22_3_3-11.outputs.cache-hit == 'false'
run: sbt -v +update
- name: Setup Java (graalvm@21)
id: setup-java-graalvm-21
if: matrix.java == 'graalvm@21'
uses: actions/setup-java@v4
with:
distribution: graalvm
java-version: 21
cache: sbt
- name: sbt update
if: matrix.java == 'graalvm@21' && steps.setup-java-graalvm-21.outputs.cache-hit == 'false'
run: sbt -v +update
- name: Setup Java (graalvm@23)
id: setup-java-graalvm-23
if: matrix.java == 'graalvm@23'
uses: actions/setup-java@v4
with:
distribution: graalvm
java-version: 23
cache: sbt
- name: sbt update
if: matrix.java == 'graalvm@23' && steps.setup-java-graalvm-23.outputs.cache-hit == 'false'
run: sbt -v +update
- name: Setup Java (semeru@11)
id: setup-java-semeru-11
if: matrix.java == 'semeru@11'
uses: actions/setup-java@v4
with:
distribution: semeru
java-version: 11
cache: sbt
- name: sbt update
if: matrix.java == 'semeru@11' && steps.setup-java-semeru-11.outputs.cache-hit == 'false'
run: sbt -v +update
- name: Setup Java (semeru@21)
id: setup-java-semeru-21
if: matrix.java == 'semeru@21'
uses: actions/setup-java@v4
with:
distribution: semeru
java-version: 21
cache: sbt
- name: sbt update
if: matrix.java == 'semeru@21' && steps.setup-java-semeru-21.outputs.cache-hit == 'false'
run: sbt -v +update
- name: Setup Java (semeru@23)
id: setup-java-semeru-23
if: matrix.java == 'semeru@23'
uses: actions/setup-java@v4
with:
distribution: semeru
java-version: 23
cache: sbt
- name: sbt update
if: matrix.java == 'semeru@23' && steps.setup-java-semeru-23.outputs.cache-hit == 'false'
run: sbt -v +update
- name: Submit Dependencies
uses: scalacenter/sbt-dependency-submission@v2
with:
modules-ignore: choam-stress-data-slow_2.13 choam-stress-data-slow_3 choam_2.13 choam_3 choam-internal-helpers_2.13 choam-internal-helpers_3 choam-stress-mcas-slow_2.13 choam-stress-mcas-slow_3 choam-stress-experiments_2.13 choam-stress-experiments_3 choam-stress-linchk_2.13 choam-stress-linchk_3 choam-stress-mcas_2.13 choam-stress-mcas_3 choam-test-ext_2.13 choam-test-ext_3 choam-stress-linchk-agent_2.13 choam-stress-linchk-agent_3 choam-test-ext_sjs1_2.13 choam-test-ext_sjs1_3 choam-layout_2.13 choam-layout_3 choam-stress-old_2.13 choam-stress-old_3 choam-stress-core_2.13 choam-stress-core_3 choam-stress-data_2.13 choam-stress-data_3 choam-stress-async_2.13 choam-stress-async_3 choam-stress-rng_2.13 choam-stress-rng_3 choam-bench_2.13 choam-bench_3
configs-ignore: test scala-tool scala-doc-tool test-internal