20
20
IMAGE_NAME : ${{ github.repository }}
21
21
22
22
jobs :
23
- build_darwin-x64 :
24
- name : Build macOS x86_64
25
- runs-on : ubuntu -latest
23
+ build_darwin :
24
+ name : Build macOS
25
+ runs-on : macos -latest
26
26
steps :
27
27
- uses : actions/checkout@v4
28
28
- name : Set up node & dependencies
@@ -33,29 +33,27 @@ jobs:
33
33
- run : npm ci
34
34
- run : |
35
35
npm run update-build-info
36
- ./bin/build-mac-x64.sh
37
- - uses : actions/upload-artifact@v4
36
+ npm run make-electron
37
+ - name : Publish zip artifact (x86_64)
38
+ uses : actions/upload-artifact@v4
38
39
with :
39
- name : trilium-mac-x64.zip
40
- path : dist/trilium-mac-x64*.zip
41
- build_darwin-arm64 :
42
- name : Build macOS aarch64
43
- runs-on : ubuntu-latest
44
- steps :
45
- - uses : actions/checkout@v4
46
- - name : Set up node & dependencies
47
- uses : actions/setup-node@v4
40
+ name : TriliumNext Notes for MacOS (x86_64)
41
+ path : out/make/darwin/x64/*.zip
42
+ - name : Publish zip artifact (arm64)
43
+ uses : actions/upload-artifact@v4
48
44
with :
49
- node-version : 20
50
- cache : " npm"
51
- - run : npm ci
52
- - run : |
53
- npm run update-build-info
54
- ./bin/build-mac-arm64.sh
55
- - uses : actions/upload-artifact@v4
45
+ name : TriliumNext Notes for MacOS (arm64)
46
+ path : out/make/darwin/arm64/*.zip
47
+ - name : Publish installer artifact (x86_64)
48
+ uses : actions/upload-artifact@v4
56
49
with :
57
- name : trilium-mac-arm64.zip
58
- path : dist/trilium-mac-arm64*.zip
50
+ name : TriliumNext Notes for MacOS (Setup) (x86_64)
51
+ path : out/make/dmg/x64/*.dmg
52
+ - name : Publish installer artifact (arm64)
53
+ uses : actions/upload-artifact@v4
54
+ with :
55
+ name : TriliumNext Notes for MacOS (Setup) (arm64)
56
+ path : out/make/dmg/arm64/*.dmg
59
57
build_linux-x64 :
60
58
name : Build Linux x86_64
61
59
runs-on : ubuntu-latest
@@ -67,17 +65,20 @@ jobs:
67
65
node-version : 20
68
66
cache : " npm"
69
67
- run : npm ci
70
- - run : |
68
+ - name : Run installer build
69
+ run : |
71
70
npm run update-build-info
72
- ./bin/build-linux-x64.sh
73
- - uses : actions/upload-artifact@v4
71
+ npm run make-electron
72
+ - name : Publish zip artifact
73
+ uses : actions/upload-artifact@v4
74
74
with :
75
- name : trilium-linux-x64.tar.xz
76
- path : dist/trilium-linux-x64-*.tar.xz
77
- - uses : actions/upload-artifact@v4
75
+ name : TriliumNext Notes for Linux
76
+ path : out/make/zip/linux/x64/*.zip
77
+ - name : Publish installer artifact
78
+ uses : actions/upload-artifact@v4
78
79
with :
79
- name : trilium_amd64.deb
80
- path : dist/trilium_ *.deb
80
+ name : TriliumNext Notes for Linux (Setup)
81
+ path : out/make/deb/x64/ *.deb
81
82
build_linux_server-x64 :
82
83
name : Build Linux Server x86_64
83
84
runs-on : ubuntu-latest
96
97
with :
97
98
name : trilium-linux-x64-server.tar.xz
98
99
path : dist/trilium-linux-x64-server-*.tar.xz
99
- build_windows-x64 :
100
+ build_windows :
100
101
name : Build Windows x86_64
101
- runs-on : ubuntu-latest
102
- steps :
103
- - name : Set up Wine
104
- run : |
105
- sudo dpkg --add-architecture i386
106
- wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
107
- sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
108
- sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu $(lsb_release -cs) main"
109
- sudo apt install --install-recommends winehq-stable
110
- - uses : actions/checkout@v4
111
- - name : Set up node & dependencies
112
- uses : actions/setup-node@v4
113
- with :
114
- node-version : 20
115
- cache : " npm"
116
- - run : npm ci
117
- - run : |
118
- npm run update-build-info
119
- ./bin/build-win-x64.sh DONTPACK
120
- - uses : actions/upload-artifact@v4
121
- with :
122
- name : trilium-windows-x64
123
- path : dist/trilium-windows-x64
124
- build_windows-installer :
125
- name : Build Windows x86_64 (Setup)
126
102
runs-on : windows-latest
127
103
steps :
128
104
- uses : actions/checkout@v4
@@ -136,6 +112,11 @@ jobs:
136
112
run : |
137
113
npm run update-build-info
138
114
npm run make-electron
115
+ - name : Publish zip artifact
116
+ uses : actions/upload-artifact@v4
117
+ with :
118
+ name : TriliumNext Notes for Windows
119
+ path : out/make/zip/win32/x64/*.zip
139
120
- name : Publish installer artifact
140
121
uses : actions/upload-artifact@v4
141
122
with :
0 commit comments