-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 981 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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]
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(Windows)
if: matrix.platform == 'windows-latest'
run: ./gradlew.bat packageReleaseDistributionForCurrentOS
- name: Build with Gradle(macOS and Linux)
if: matrix.platform != 'windows-latest'
run: ./gradlew packageReleaseDistributionForCurrentOS
- name: Upload artifact
uses: actions/[email protected]
with:
name: "${{ matrix.os }} artifact"
path: build/compose/binaries