Skip to content

Commit

Permalink
fix(ci): enable matrix build for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Nov 17, 2021
1 parent e005e6e commit f82697c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ensure-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,19 @@ jobs:
java-package: jdk
java-version: ${{ matrix.java }}

- name: Calculate platform suffix
id: platform_suffix
uses: actions/github-script@v5.0.0
env:
OS: ${{ matrix.os }}
with:
script: |
const { OS } = process.env
if (OS.includes("windows")) {
core.setOutput('platform_suffix', `.cmd`)
} else {
core.setOutput('platform_suffix', ``)
}
- name: Run mvnw
run: ./mvnw install
run: ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} install

0 comments on commit f82697c

Please sign in to comment.