Skip to content

Commit

Permalink
Updating github actions to JDK 21
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpsaraiva committed Dec 4, 2023
1 parent 3e9eff9 commit ea8d8f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Java setup
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '21'
java-package: jdk

- name: Query dependencies
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/java-r5rcore-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
GH_TOKEN: ${{ github.token }}

runs-on: ubuntu-latest

# don't build on merges to master
if: ${{ !github.ref_protected }}

Expand All @@ -22,14 +22,14 @@ jobs:
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Install R packages
run: |
install.packages(c('devtools', 'remotes'))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
working-directory: r-package

- name: Install system dependencies
run: |
while read -r cmd
Expand All @@ -38,10 +38,10 @@ jobs:
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
working-directory: r-package

- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '21'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
Expand All @@ -50,7 +50,7 @@ jobs:
with:
arguments: build
build-root-directory: java-r5rcore

- name: Create pull request
# https://github.com/actions/checkout/pull/1184
run: |
Expand All @@ -59,4 +59,4 @@ jobs:
mv java-r5rcore/build/libs/java-r5rcore-*.jar r-package/inst/jar/r5r.jar
git add r-package/inst/jar/r5r.jar
git commit -m "Rebuild JAR for commit ${GITHUB_SHA}"
git push
git push
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Java setup
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '21'
java-package: jdk

- name: Query dependencies
Expand Down

0 comments on commit ea8d8f4

Please sign in to comment.