This repository was archived by the owner on Jun 24, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 151
142 lines (140 loc) · 4.45 KB
/
main.yml
File metadata and controls
142 lines (140 loc) · 4.45 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: Main
on:
push:
branches:
- "develop"
- "feature/update**"
- "feature/server_esm**"
paths-ignore:
- "docs/**"
- "bin/**"
- ".github/workflows/main-docker.yml"
tags:
- "v*"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_darwin:
name: Build macOS (x86_64, arm64)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Run MacOS installer build (x86_64)
run: |
npm run update-build-info
npm run make-electron -- --arch="x64"
- name: Publish MacOS zip artifact (x86_64)
uses: actions/upload-artifact@v4
with:
name: TriliumNext Notes for MacOS (x86_64)
path: out/make/zip/darwin/x64/*.zip
- name: Publish MacOS installer artifact (x86_64)
uses: actions/upload-artifact@v4
with:
name: TriliumNext Notes for MacOS (Setup) (x86_64)
path: out/make/*-x64.dmg
- name: Run MacOS installer build (arm64)
run: |
npm run update-build-info
npm run make-electron -- --arch="arm64"
- name: Publish MacOS zip artifact (arm64)
uses: actions/upload-artifact@v4
with:
name: TriliumNext Notes for MacOS (arm64)
path: out/make/zip/darwin/arm64/*.zip
- name: Publish MacOS installer artifact (arm64)
uses: actions/upload-artifact@v4
with:
name: TriliumNext Notes for MacOS (Setup) (arm64)
path: out/make/*-arm64.dmg
build_linux:
name: Build Linux (x86_64, arm64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Run Linux installer build (x86_64)
run: |
npm run update-build-info
npm run make-electron -- --arch="x64"
- name: Publish Linux zip artifact (x86_64)
uses: actions/upload-artifact@v4
with:
name: TriliumNext Notes for Linux
path: out/make/zip/linux/x64/*.zip
- name: Publish Linux installer artifact (x86_64)
uses: actions/upload-artifact@v4
with:
name: TriliumNext Notes for Linux (Setup)
path: out/make/deb/x64/*.deb
- name: Run Linux installer build (arm64)
run: |
npm run update-build-info
npm run make-electron -- --arch="arm64"
- name: Publish Linux zip artifact (arm64)
uses: actions/upload-artifact@v4
with:
name: TriliumNext Notes for Linux
path: out/make/zip/linux/arm64/*.zip
- name: Publish Linux installer artifact (arm64)
uses: actions/upload-artifact@v4
with:
name: TriliumNext Notes for Linux (Setup)
path: out/make/deb/arm64/*.deb
build_linux_server-x64:
name: Build Linux Server x86_64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Run Linux server build (x86_64)
run: |
npm run update-build-info
./bin/build-server.sh
- uses: actions/upload-artifact@v4
with:
name: trilium-linux-x64-server.tar.xz
path: dist/trilium-linux-x64-server-*.tar.xz
build_windows:
name: Build Windows x86_64
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Run Windows installer build (x86_64)
run: |
npm run update-build-info
npm run make-electron
- name: Publish Windows zip artifact (x86_64)
uses: actions/upload-artifact@v4
with:
name: TriliumNext Notes for Windows
path: out/make/zip/win32/x64/*.zip
- name: Publish Windows installer artifact (x86_64)
uses: actions/upload-artifact@v4
with:
name: TriliumNext Notes for Windows (Setup)
path: out/make/squirrel.windows/x64/*.exe