Skip to content

Commit

Permalink
ci: update checkout and setup-java versions (#75)
Browse files Browse the repository at this point in the history
* ci: update checkout and setup-java versions

also update which ref to checkout on release

* Update ci.yaml to set jdk 11

* set distribution: 'zulu' for PR job

* set distribution: 'zulu' on release-please
  • Loading branch information
nicklasl authored Oct 3, 2023
1 parent 421782a commit 952ad25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/checkout@v1
- name: Set up JDK 12
uses: actions/setup-java@v1
- uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 12
java-version: 11
distribution: 'zulu'

- name: Grant Permission for Gradlew to Execute
run: chmod +x gradlew
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,15 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ needs.release-please.outputs.release_tag_name }}

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'zulu'

- name: Grant Permission for Gradlew to Execute
run: chmod +x gradlew
Expand All @@ -69,4 +72,4 @@ jobs:
upload_url: ${{ needs.release-please.outputs.upload_url }}
asset_path: Provider/build/outputs/aar/Provider-release.aar
asset_name: provider-sdk.aar
asset_content_type: application/aar
asset_content_type: application/aar

0 comments on commit 952ad25

Please sign in to comment.