-
Notifications
You must be signed in to change notification settings - Fork 0
112 lines (91 loc) · 3.21 KB
/
maven.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: Build the updater
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build_windows:
runs-on: windows-latest
steps:
- name: 📩 Set up JDK 11
uses: actions/checkout@v3
- name: 🏗️ Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: maven
- name: 🔨 Compile the updater
run: bash build.sh compile
- name: 📦 Build the Windows artifact
run: bash build.sh dist-windows
- name: 🔨 Create installer
uses: joncloud/makensis-action@v4.1
with:
script-file: "Installer.nsi"
- name: 🆙 Upload the Windows artifact (x86_64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-windows-x86_64.zip
path: dist/artifacts/Casterlabs-Caffeinated-windows-x86_64.zip
- name: 🆙 Upload the Windows installer (x86_64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-Setup.exe
path: dist/Casterlabs-Caffeinated-Setup.exe
build_macos:
runs-on: ubuntu-latest
steps:
- name: 📩 Set up JDK 11
uses: actions/checkout@v3
- name: 🏗️ Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: maven
- name: 🔨 Compile the updater
run: bash build.sh compile
- name: 📦 Build the macOS artifact
run: bash build.sh dist-macos
- name: 🆙 Upload the macOS artifact (aarch64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-macos-aarch64.tar.gz
path: dist/artifacts/Casterlabs-Caffeinated-macos-aarch64.tar.gz
- name: 🆙 Upload the macOS artifact (x86_64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-macos-x86_64.tar.gz
path: dist/artifacts/Casterlabs-Caffeinated-macos-x86_64.tar.gz
build_linux:
runs-on: ubuntu-latest
steps:
- name: 📩 Set up JDK 11
uses: actions/checkout@v3
- name: 🏗️ Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: maven
- name: 🔨 Compile the updater
run: bash build.sh compile
- name: 📦 Build the Linux artifact
run: bash build.sh dist-linux
- name: 🆙 Upload the Linux artifact (aarch64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-gnulinux-aarch64.tar.gz
path: dist/artifacts/Casterlabs-Caffeinated-gnulinux-aarch64.tar.gz
- name: 🆙 Upload the Linux artifact (arm)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-gnulinux-arm.tar.gz
path: dist/artifacts/Casterlabs-Caffeinated-gnulinux-arm.tar.gz
- name: 🆙 Upload the Linux artifact (x86_64)
uses: actions/upload-artifact@v3
with:
name: Casterlabs-Caffeinated-gnulinux-x86_64.tar.gz
path: dist/artifacts/Casterlabs-Caffeinated-gnulinux-x86_64.tar.gz