-
Notifications
You must be signed in to change notification settings - Fork 7
132 lines (114 loc) · 3.53 KB
/
build.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: build-all
on:
push:
branches:
- main
- dev
tags:
- "v**"
pull_request:
branches:
- main
- dev
workflow_dispatch:
permissions:
contents: write
jobs:
build_linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
if: github.event.pull_request.draft == false
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install --no-audit
- run: |
npm run download-binaries-linux
chmod +x bin/linux/xlite-daemon*
- run: npm run build-native-linux
- uses: actions/upload-artifact@v3
with:
name: artifacts-linux
path: |
dist-native/*.tar.gz
dist-native/*.AppImage
dist-native/*.deb
dist-native/latest*.yml
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
name: Xlite ${{ github.ref_name}}
prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc') }}
generate_release_notes: true
files: |
dist-native/*.tar.gz
dist-native/*.AppImage
dist-native/*.deb
dist-native/latest*.yml
build_mac:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
if: github.event.pull_request.draft == false
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: npm install --no-audit
- run: |
npm run download-binaries-mac
chmod +x bin/mac/xlite-daemon*
- run: npm run build-native-mac
- uses: actions/upload-artifact@v3
with:
name: artifacts-mac
path: |
dist-native/*.dmg
dist-native/*.dmg.blockmap
dist-native/*.zip
dist-native/latest*.yml
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
name: Xlite ${{ github.ref_name}}
prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc') }}
generate_release_notes: true
files: |
dist-native/*.dmg
dist-native/*.dmg.blockmap
dist-native/*.zip
dist-native/latest*.yml
build_win:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
if: github.event.pull_request.draft == false
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install --no-audit
- run: npm run download-binaries-win
- run: npm run build-native-win
- uses: actions/upload-artifact@v3
with:
name: artifacts-win
path: |
dist-native/*.exe
dist-native/*.exe.blockmap
dist-native/*.zip
dist-native/latest*.yml
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
name: Xlite ${{ github.ref_name}}
prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc') }}
generate_release_notes: true
files: |
dist-native/*.exe
dist-native/*.exe.blockmap
dist-native/*.zip
dist-native/latest*.yml