Skip to content

Commit

Permalink
Updating Github Actions and enabling cross-platform testing (#272)
Browse files Browse the repository at this point in the history
* Upgraded actions/checkout to 4.1.4; Upgraded actions/setup-java to 4.2.1; Upgraded gradle/gradle-build-action to 3.3.2

* Fixing version declaration for gradle/gradle-build-action

* Replaced deprecated gradle-build-action with setup-gradle Github Action

* Build action will now occur on both a Windows VM and a Linux VM
  • Loading branch information
severn-everett authored May 17, 2024
1 parent 9781b1d commit 86bbb0e
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,27 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

name: Build on ${{ matrix.os.runner }}
runs-on: ${{ matrix.os.runner }}
defaults:
run:
shell: ${{ matrix.os.shell }}
strategy:
fail-fast: false
matrix:
os:
- runner: windows-latest
shell: msys2 {0}
- runner: ubuntu-latest
shell: bash
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4.2.1
with:
java-version: '11'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
uses: gradle/actions/[email protected]
with:
arguments: jvmTest

0 comments on commit 86bbb0e

Please sign in to comment.