Skip to content

Commit

Permalink
Github: Use Java 17 and run on macOS Monetery
Browse files Browse the repository at this point in the history
The tag `macos-latest` still points to Big Sur (11).
  • Loading branch information
saschpe committed Jul 30, 2022
1 parent 5b8a6b3 commit 9f7f6aa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- name: Run Spotless
run: ./gradlew spotlessCheck

build:
runs-on: macos-latest
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- name: Build with Gradle
run: ./gradlew build
- name: Archive .gradle folder
Expand All @@ -42,7 +42,7 @@ jobs:

publish:
needs: build
runs-on: macos-latest
runs-on: macos-12
if: github.ref == 'refs/heads/main'
environment: Sonatype
env:
Expand All @@ -51,10 +51,10 @@ jobs:
SECRETS_KEY: ${{ secrets.SECRETS_KEY }}
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17
- name: Download .gradle folder
uses: actions/download-artifact@v1
with:
Expand Down

0 comments on commit 9f7f6aa

Please sign in to comment.