Skip to content

Commit e57f794

Browse files
update ci for windows build
1 parent a4cd551 commit e57f794

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,20 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v6
14+
15+
- name: Install FOSSA CLI
16+
shell: bash
17+
run: |
18+
set -euo pipefail
19+
mkdir -p "$RUNNER_TEMP/fossa"
20+
curl -H 'Cache-Control: no-cache' -fsSL https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash -s -- -b "$RUNNER_TEMP/fossa"
21+
echo "$RUNNER_TEMP/fossa" >> "$GITHUB_PATH"
22+
1423
- name: Run FOSSA scan
15-
uses: fossas/fossa-action@v1.9.0
16-
with:
17-
api-key: ${{ secrets.FOSSA_API_KEY }}
24+
shell: bash
25+
run: fossa analyze
26+
env:
27+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
1828

1929
assemble:
2030
name: Assemble physicsbox
@@ -78,7 +88,7 @@ jobs:
7888
gradleTask: :desktopApp:packageDeb
7989
ext: deb
8090
outName: PhysicsBoxDemo-linux.deb
81-
- os: windows-latest
91+
- os: windows-2022
8292
gradleTask: :desktopApp:packageMsi
8393
ext: msi
8494
outName: PhysicsBoxDemo-windows.msi
@@ -99,12 +109,20 @@ jobs:
99109
run: choco install wixtoolset -y
100110

101111
- name: Set up JDK 17
112+
if: runner.os != 'Windows'
102113
uses: actions/setup-java@v5
103114
with:
104115
distribution: zulu
105116
java-version: 17
106117
cache: gradle
107118

119+
- name: Set up JDK 17 (windows)
120+
if: runner.os == 'Windows'
121+
uses: actions/setup-java@v5
122+
with:
123+
distribution: zulu
124+
java-version: 17
125+
108126
- name: Build desktop package
109127
shell: bash
110128
run: ./gradlew ${{ matrix.gradleTask }} --no-configuration-cache

0 commit comments

Comments
 (0)