Skip to content

Commit

Permalink
ci: add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
purofle committed Dec 30, 2023
1 parent 0e4f1f4 commit 3a8bb5d
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ on:
branches: [ "main" ]

jobs:
windows-build:
name: windows build
runs-on: windows-latest
build:
strategy:
max-parallel: 3
fail-fast: true
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}
name: "${{ matrix.os }} build"

steps:
- uses: actions/checkout@v3

Expand All @@ -20,11 +26,16 @@ jobs:
java-version: '17'
distribution: 'zulu'
cache: gradle

- name: Build with Gradle
run: ./gradlew.bat packageReleaseMsi

- name: Build with Gradle(Windows)
if: matrix.platform == 'windows-latest'
run: ./gradlew.bat packageDistributionForCurrentOS
- name: Build with Gradle(macOS and Linux)
if: matrix.platform != 'windows-latest'
run: ./gradlew packageDistributionForCurrentOS

- name: Upload artifact
uses: actions/[email protected]
with:
path: build/compose
name: "${{ matrix.os }} artifact"
path: build/compose/binaries

0 comments on commit 3a8bb5d

Please sign in to comment.