-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into coko-examples
- Loading branch information
Showing
125 changed files
with
3,177 additions
and
1,709 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Portability testing across OSes and Java LTS versions | ||
# --- | ||
# Regularly check if we remain compatible with other OSes than Linux and if we | ||
# could upgrade to newer LTS versions of Java. | ||
# | ||
# This acts more like an indicator if something is going to break. Our main | ||
# target platform is Linux and we build against it during our regular workflow | ||
# runs. Likewise, we're just testing if we could support newer LTS version of | ||
# Java. We're still taking very deliberate decisions to upgrade to the next | ||
# LTS version of Java. | ||
name: 'Portability testing OSes and Java LTS versions' | ||
|
||
permissions: {} | ||
|
||
on: | ||
schedule: | ||
# runs at 5:00 on the first of every month | ||
- cron: '0 5 1 * *' | ||
# can be triggered manually | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java-lts: [ '17', '21' ] | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: true | ||
name: 'Building with Java ${{ matrix.java-lts }} on ${{ matrix.os }}' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Java ${{ matrix.java-lts }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: ${{ matrix.java-lts }} | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
- name: Build and Test | ||
id: build-and-test | ||
run: ./gradlew build --parallel | ||
- if: ${{ failure() }} | ||
run: touch failure | ||
- if: ${{ !cancelled() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.os }}-${{ matrix.java-lts }}-failure | ||
path: failure | ||
if-no-files-found: ignore | ||
retention-days: 1 | ||
|
||
process-failures: | ||
if: ${{ !cancelled() }} | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get failures from matrix jobs | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: all-failures | ||
pattern: '*-failure' | ||
merge-multiple: true | ||
- name: Process failures | ||
id: process-failures | ||
run: test -f all-failures/failure && echo 'hasFails=true' >> "$GITHUB_OUTPUT" | ||
- if: ${{ steps.process-failures.outputs.hasFails == 'true' }} | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.setFailed('Some matrix jobs failed.') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM eclipse-temurin:17-jre | ||
FROM eclipse-temurin:17.0.10_7-jre | ||
|
||
LABEL org.opencontainers.image.authors="Fraunhofer AISEC <[email protected]>" | ||
|
||
|
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ publishing { | |
} | ||
} | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.