Configuration Sector Cleanup #181
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 on Latest and All Platforms | |
# Triggered on both PRs and pushes to main | |
on: | |
push: | |
branches: [ "main", "staging" ] | |
pull_request: | |
branches: [ "main", "staging" ] | |
jobs: | |
# Runs on Ubuntu latest (version 22.04) | |
ubuntu: | |
name: 'Build Ubuntu Latest' | |
runs-on: ubuntu-latest | |
environment: jdk21-building | |
permissions: | |
contents: read | |
# This will run on the JDK environment specified above | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ vars.JAVA_VERSION }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ vars.JAVA_VERSION }} | |
distribution: ${{ vars.UBUNTU_DISTRIBUTION }} | |
- name: Cache Maven dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Run the Maven verify phase | |
run: mvn --batch-mode --update-snapshots verify | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
# Runs on MacOS latest (version 12.0) | |
macos: | |
name: 'Build MacOS Latest' | |
runs-on: macos-latest | |
environment: jdk21-building | |
permissions: | |
contents: read | |
# This will run on the JDK environment specified above | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ vars.JAVA_VERSION }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ vars.JAVA_VERSION }} | |
distribution: ${{ vars.MACOS_DISTRIBUTION }} | |
- name: Cache Maven dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Run the Maven verify phase | |
run: mvn --batch-mode --update-snapshots verify | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
# Runs on Windows latest (version 2022) | |
windows: | |
name: 'Build Windows Latest' | |
runs-on: windows-latest | |
environment: jdk21-building | |
permissions: | |
contents: read | |
# This will run on the JDK environment specified above | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ vars.JAVA_VERSION }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ vars.JAVA_VERSION }} | |
distribution: ${{ vars.WINDOWS_DISTRIBUTION }} | |
- name: Cache Maven dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Run the Maven verify phase | |
run: mvn --batch-mode --update-snapshots verify | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml |