Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbsl committed Oct 9, 2023
1 parent 5a00168 commit f049559
Show file tree
Hide file tree
Showing 4 changed files with 313 additions and 574 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,22 @@ jobs:

build-upload:
needs: create-staging-repository
runs-on: ubuntu-latest
runs-on: macos-latest
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.PGP_SIGNING_KEY }}
GPG_PRIVATE_PASSWORD: ${{ secrets.PGP_SIGNING_PASSWORD }}
steps:
- name: Check out
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3
- name: Cached Gradle
uses: actions/cache@v2
with:
path: ~/.gradle
key: gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: gradle-
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 #v2
- name: Set up JDK 17
uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc #v3
with:
java-version: 11
java-version: 17
distribution: 'temurin'
- name: Check
run: ./gradlew build check
shell: bash
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,17 @@ env:

jobs:
build-upload:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3
- name: Cached Gradle
uses: actions/cache@v2
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 #v2
- name: Set up JDK 17
uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc #v3
with:
path: ~/.gradle
key: gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: gradle-
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
distribution: 'temurin'
- name: Check
run: ./gradlew build check
shell: bash
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,17 @@ on:
jobs:

check:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3
- name: Cached Gradle
uses: actions/cache@v2
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 #v2
- name: Set up JDK 17
uses: actions/setup-java@de1bb2b0c5634f0fc4438d7aa9944e68f9bf86cc #v3
with:
path: ~/.gradle
key: gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: gradle-
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
distribution: 'temurin'
- name: Build & Check
run: ./gradlew build check
shell: bash
Loading

0 comments on commit f049559

Please sign in to comment.