Skip to content

Commit 2c08675

Browse files
committed
Extend build workflow to run tests on macOS with/without JNA
1 parent e21382d commit 2c08675

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@ jobs:
1212
test:
1313
strategy:
1414
matrix:
15-
os: [ubuntu-latest, macos-latest, windows-latest]
15+
os:
16+
- image: ubuntu-latest
17+
- image: macos-latest
18+
argLine: -Dengineering.swat.java-watch.mac=jdk
19+
- image: macos-latest
20+
argLine: -Dengineering.swat.java-watch.mac=jna
21+
- image: windows-latest
1622
jdk: [11, 17, 21]
23+
1724
fail-fast: false
18-
runs-on: ${{ matrix.os }}
25+
runs-on: ${{ matrix.os.image }}
1926
steps:
2027
- uses: actions/checkout@v4
2128
- run: echo " " >> pom.xml # make sure the cache is slightly different for these runners
@@ -27,7 +34,7 @@ jobs:
2734
cache: 'maven'
2835

2936
- name: test
30-
run: mvn -B clean test
37+
run: mvn -B clean test -DargLine="${{ matrix.os.argLine }}"
3138
env:
3239
DELAY_FACTOR: 3
3340

0 commit comments

Comments
 (0)