-
-
Notifications
You must be signed in to change notification settings - Fork 8
92 lines (88 loc) · 2.79 KB
/
build-main.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
on:
push:
branches: [master, main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_windows:
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- run: npm version --no-git-tag-version patch
- run: yarn install --network-timeout 1000000 --frozen-lockfile
- run: yarn test-ci
- run: yarn build
- run: yarn dist
- run: mv ./dist/sqlui-native*.exe ./dist/sqlui-native.exe
- name: Upload artifact .exe
uses: actions/upload-artifact@v3
with:
name: sqlui-native.exe
path: ./dist/sqlui-native.exe
build_macos:
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- run: npm version --no-git-tag-version patch
- run: yarn install --network-timeout 1000000 --frozen-lockfile
- run: yarn test-ci
- run: yarn build
- run: yarn dist
- run: mv ./dist/sqlui-native*.dmg ./dist/sqlui-native.dmg
- name: Upload artifact .dmg
uses: actions/upload-artifact@v3
with:
name: sqlui-native.dmg
path: ./dist/sqlui-native.dmg
build_linux:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: install missing dependencies
run: sudo apt-get install -y libarchive-tools
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- run: npm version --no-git-tag-version patch
- run: yarn install --network-timeout 1000000 --frozen-lockfile
- run: yarn test-ci
- run: yarn build
- run: yarn dist
- run: |
mv ./dist/sqlui-native*.deb ./dist/sqlui-native.deb
mv ./dist/sqlui-native*.rpm ./dist/sqlui-native.rpm
mv ./dist/sqlui-native*.snap ./dist/sqlui-native.snap
mv ./dist/sqlui-native*.pacman ./dist/sqlui-native.pacman
- name: Upload artifact .deb
uses: actions/upload-artifact@v3
with:
name: sqlui-native.deb
path: ./dist/sqlui-native.deb
- name: Upload artifact .rpm
uses: actions/upload-artifact@v3
with:
name: sqlui-native.rpm
path: ./dist/sqlui-native.rpm
- name: Upload artifact .snap
uses: actions/upload-artifact@v3
with:
name: sqlui-native.snap
path: ./dist/sqlui-native.snap
- name: Upload artifact .pacman
uses: actions/upload-artifact@v3
with:
name: sqlui-native.pacman
path: ./dist/sqlui-native.pacman