Skip to content

Commit

Permalink
using jdk 21 on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapereirabr committed Dec 4, 2023
1 parent 7e53189 commit ed89039
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit ed89039

Please sign in to comment.