Skip to content

Commit ac1209a

Browse files
committed
Add OS matrix for Ubuntu, Windows and macOS
1 parent 4b82d03 commit ac1209a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/bld.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
name: bld-ci
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on: [ push, pull_request, workflow_dispatch ]
44

55
jobs:
66
build-bld-project:
7-
runs-on: ubuntu-latest
8-
97
env:
108
COVERAGE_JDK: "17"
119

1210
strategy:
1311
matrix:
14-
java-version: [17, 21, 24]
12+
java-version: [ 17, 21, 24 ]
13+
os: [ ubuntu-latest, windows-latest, macos-latest ]
14+
15+
runs-on: ${{ matrix.os }}
1516

1617
steps:
1718
- name: Checkout source repository
@@ -35,18 +36,18 @@ jobs:
3536
run: ./bld jacoco
3637

3738
- name: Remove pom.xml
38-
if: success() && matrix.java-version == env.COVERAGE_JDK
39+
if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.os == 'ubuntu-latest'
3940
run: rm -rf pom.xml
4041

4142
- name: SonarCloud Scan
4243
uses: sonarsource/sonarcloud-github-action@master
43-
if: success() && matrix.java-version == env.COVERAGE_JDK
44+
if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.os == 'ubuntu-latest'
4445
env:
4546
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4647
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4748

4849
- name: Upload coverage reports to Codecov
4950
uses: codecov/codecov-action@v3
50-
if: success() && matrix.java-version == env.COVERAGE_JDK
51+
if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.os == 'ubuntu-latest'
5152
env:
5253
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)