2020 IMAGE_NAME : ${{ github.repository }}
2121
2222jobs :
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
2626 steps :
2727 - uses : actions/checkout@v4
2828 - name : Set up node & dependencies
@@ -33,29 +33,27 @@ jobs:
3333 - run : npm ci
3434 - run : |
3535 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
3839 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
4844 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
5649 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
5957 build_linux-x64 :
6058 name : Build Linux x86_64
6159 runs-on : ubuntu-latest
@@ -67,17 +65,20 @@ jobs:
6765 node-version : 20
6866 cache : " npm"
6967 - run : npm ci
70- - run : |
68+ - name : Run installer build
69+ run : |
7170 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
7474 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
7879 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
8182 build_linux_server-x64 :
8283 name : Build Linux Server x86_64
8384 runs-on : ubuntu-latest
9697 with :
9798 name : trilium-linux-x64-server.tar.xz
9899 path : dist/trilium-linux-x64-server-*.tar.xz
99- build_windows-x64 :
100+ build_windows :
100101 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)
126102 runs-on : windows-latest
127103 steps :
128104 - uses : actions/checkout@v4
@@ -136,6 +112,11 @@ jobs:
136112 run : |
137113 npm run update-build-info
138114 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
139120 - name : Publish installer artifact
140121 uses : actions/upload-artifact@v4
141122 with :
0 commit comments