mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-09-13 00:14:56 +00:00
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:
11
.github/workflows/maven.yml
vendored
11
.github/workflows/maven.yml
vendored
@@ -11,7 +11,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -33,10 +33,10 @@ jobs:
|
|||||||
${{ runner.os }}-maven-
|
${{ runner.os }}-maven-
|
||||||
|
|
||||||
- name: Build with 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
|
- name: Upload Linux distribution package
|
||||||
if: success()
|
if: success() && runner.os == 'Linux'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: kkfileview-linux
|
name: kkfileview-linux
|
||||||
@@ -44,9 +44,12 @@ jobs:
|
|||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
- name: Upload Windows distribution package
|
- name: Upload Windows distribution package
|
||||||
if: success()
|
if: success() && runner.os == 'Windows'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: kkfileview-windows
|
name: kkfileview-windows
|
||||||
path: server/target/*.zip
|
path: server/target/*.zip
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
||||||
|
|||||||
Reference in New Issue
Block a user