Skip to content

Commit 7258278

Browse files
authored
Merge pull request #6 from stephengold/sgold-test-macos
workflows: add a job to build and test on macOS
2 parents af1f3a0 + 8fdf341 commit 7258278

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/maven.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,26 @@ on:
1515
branches: [ "Overhaul" ]
1616

1717
jobs:
18-
build:
19-
18+
Linux:
2019
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v7
22+
- name: Set up JDK 26
23+
uses: actions/setup-java@v5
24+
with:
25+
java-version: '26'
26+
distribution: 'temurin'
27+
cache: maven
28+
- name: Build with Maven
29+
run: mvn -B package --file pom.xml
30+
- name: Execute the HelloWorld app
31+
run: |
32+
$JAVA_HOME/bin/java --enable-preview --enable-native-access=ALL-UNNAMED \
33+
-cp target/JoltPhysics-JavaFFM-5.5.0-jar-with-dependencies.jar \
34+
volucris.bindings.jolt.HelloWorld
2135
36+
macOS:
37+
runs-on: macos-26
2238
steps:
2339
- uses: actions/checkout@v7
2440
- name: Set up JDK 26

0 commit comments

Comments
 (0)