Skip to content

Commit

Permalink
[#1930] Update GitHub action to build and release snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD committed Sep 25, 2024
1 parent d639cbf commit 4482fc4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# GitHub actions for branch testing the latest Hibernate ORM 6.6 snapshot
# GitHub actions for branch testing the latest Hibernate ORM 7.0 snapshot
name: Hibernate Reactive CI

on:
push:
branches:
- wip/2.4
- wip/3.0
pull_request:
branches: wip/2.4
branches: wip/3.0
schedule:
# * is a special character in YAML, so you have to quote this string
# Run every hour at minute 25
Expand Down Expand Up @@ -85,11 +85,11 @@ jobs:
.gradle/wrapper
# refresh cache every month to avoid unlimited growth
key: gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2.2.0
with:
distribution: 'temurin'
java-version: 11
java-version: 17
- name: Print the effective ORM version used
run: ./gradlew :${{ matrix.example }}:dependencyInsight --dependency org.hibernate.orm:hibernate-core
- name: Run examples in '${{ matrix.example }}' on ${{ matrix.db }}
Expand Down Expand Up @@ -124,11 +124,11 @@ jobs:
.gradle/wrapper
# refresh cache every month to avoid unlimited growth
key: gradle-db-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2.2.0
with:
distribution: 'temurin'
java-version: 11
java-version: 17
- name: Print the effective ORM version used
run: ./gradlew :hibernate-reactive-core:dependencyInsight --dependency org.hibernate.orm:hibernate-core
- name: Build and Test with ${{ matrix.db }}
Expand All @@ -153,7 +153,7 @@ jobs:
# To see the available versions and download links on jdk.java.net:
# https://github.com/oracle-actions/setup-java/blob/main/jdk.java.net-uri.properties
java:
- { name: "11", java_version_numeric: 11 }
# - { name: "11", java_version_numeric: 11 }
- { name: "17", java_version_numeric: 17 }
# We want to enable preview features when testing newer builds of OpenJDK:
# even if we don't use these features, just enabling them can cause side effects
Expand Down Expand Up @@ -196,14 +196,14 @@ jobs:
- name: Export path to JDK ${{ matrix.java.name }}
id: testjdk-exportpath
run: echo "::set-output name=path::${JAVA_HOME}"
# Always use JDK 11 to build the main code: that's what we use for releases.
- name: Set up JDK 11
# Always use JDK 17 to build the main code: that's what we use for releases.
- name: Set up JDK 17
uses: actions/setup-java@v2.2.0
with:
distribution: 'temurin'
java-version: 11
java-version: 17
check-latest: true
- name: Export path to JDK 11
- name: Export path to JDK 17
id: mainjdk-exportpath
run: echo "::set-output name=path::${JAVA_HOME}"
- name: Display exact version of JDK ${{ matrix.java.name }}
Expand All @@ -229,11 +229,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2.2.0
with:
distribution: 'temurin'
java-version: 11
java-version: 17
- name: Create artifacts
run: ./gradlew assemble
- name: Detect the version of Hibernate Reactive
Expand Down

0 comments on commit 4482fc4

Please sign in to comment.