From 3e16ed9d3b82a3bef81fc508e4d84ea624084319 Mon Sep 17 00:00:00 2001 From: addwes7 Date: Thu, 25 Jun 2026 23:38:15 -0400 Subject: [PATCH] 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 --- .github/workflows/maven.yml | 11 +++++++---- .github/workflows/nightly-e2e.yml | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 379af223..1e4c554c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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 ] diff --git a/.github/workflows/nightly-e2e.yml b/.github/workflows/nightly-e2e.yml index 431ff4a0..1be577c9 100644 --- a/.github/workflows/nightly-e2e.yml +++ b/.github/workflows/nightly-e2e.yml @@ -115,4 +115,4 @@ jobs: name: nightly-e2e-service-logs path: | /tmp/kkfileview.log - /tmp/fixture-server.log + /tmp/fixture-server.log \ No newline at end of file