Skip to content

Commit

Permalink
use 21 for Github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Nov 6, 2024
1 parent 94fd680 commit 03afe16
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 1.8
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '21'
- name: Set up MySQL
uses: shogo82148/actions-setup-mysql@v1
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Set up JDK 1.8
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 8
java-version: 21
distribution: "temurin"

- name: Determine the version
Expand All @@ -43,21 +43,21 @@ jobs:
exit 1
if: github.event_name != 'workflow_dispatch' && steps.versioncheck.outputs.version != github.ref_name

- name: Set up JDK 1.8 for snapshots
- name: Set up JDK 21 for snapshots
uses: actions/setup-java@v4
with:
java-version: 8
java-version: 21
distribution: "temurin"
cache: "maven"
server-id: openconext-snapshots
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
if: ( endsWith(steps.versioncheck.outputs.version, '-SNAPSHOT'))

- name: Set up JDK 1.8
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 8
java-version: 21
distribution: "temurin"
cache: "maven"
server-id: openconext-releases
Expand Down

0 comments on commit 03afe16

Please sign in to comment.