Update ci.yml #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NMSLauncher CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
strategy: | |
max-parallel: 3 | |
fail-fast: true | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
include: | |
- os: windows-latest | |
gradle: gradlew.bat | |
runs-on: ${{ matrix.os }} | |
name: "${{ matrix.os }} build" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
cache: gradle | |
- name: Build with Gradle | |
- if: ${{ matrix.gradle }} | |
run: ./gradlew.bat packageReleaseMsi | |
- run: ./gradlew packageRelease | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
path: build/compose/binaries |