Add Windows and macOS to CI build matrix and fix cross-platform issues (#768)

* Add Windows and macOS to CI build matrix and fix cross-platform issues

* run nightly e2e on ubuntu and prevent duplicate artifact upload
This commit is contained in:
addwes7
2026-06-25 23:38:15 -04:00
committed by GitHub
parent 32a887aa2c
commit 3e16ed9d3b
2 changed files with 8 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ on:
jobs:
build:
runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
@@ -33,10 +33,10 @@ jobs:
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B package -Dmaven.test.skip=true --file pom.xml
run: mvn -B package "-Dmaven.test.skip=true" --file pom.xml
- name: Upload Linux distribution package
if: success()
if: success() && runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: kkfileview-linux
@@ -44,9 +44,12 @@ jobs:
retention-days: 7
- name: Upload Windows distribution package
if: success()
if: success() && runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
name: kkfileview-windows
path: server/target/*.zip
retention-days: 7
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]

View File

@@ -115,4 +115,4 @@ jobs:
name: nightly-e2e-service-logs
path: |
/tmp/kkfileview.log
/tmp/fixture-server.log
/tmp/fixture-server.log