-
Notifications
You must be signed in to change notification settings - Fork 109
67 lines (57 loc) · 2.2 KB
/
release.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Make image
on:
release:
types: [published, edited]
jobs:
build:
strategy:
fail-fast: true
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
include:
- os: windows-latest
displayName: Windows
prefix: win
app-image: bsl-language-server
- os: ubuntu-latest
displayName: Linux
prefix: nix
app-image: bsl-language-server
- os: macOS-latest
displayName: MacOS
prefix: mac
app-image: bsl-language-server.app
runs-on: ${{ matrix.os }}
name: (${{ matrix.displayName }}) create image app version
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 23
distribution: 'temurin'
cache: gradle
- name: Build bootJar with Gradle
run: ./gradlew check bootJar
- name: Build jpackage application image
run: python .github/scripts/build-jpackage.py ${{ matrix.prefix }} ${{ matrix.app-image }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: bsl-language-server_${{ matrix.prefix }}.zip
path: ./${{ matrix.app-image }}
- name: Upload assets to release
uses: AButler/[email protected]
with:
files: './bsl-language-server_${{ matrix.prefix }}.zip'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Gradle
if: matrix.prefix == 'nix'
run: ./gradlew build -x test
- name: Upload jar to release
if: matrix.prefix == 'nix'
uses: AButler/[email protected]
with:
files: './build/libs/*.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}