-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (61 loc) · 1.7 KB
/
electron-ubuntu.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
name: Electron CD Ubuntu
on:
push:
branches:
- dev
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: "latest"
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Use cmake
run: cmake --version
- name: Use protoc
run: protoc --version
- name: yarn install
run: |
yarn install
- name: Build and Package@Linux
if: contains(matrix.os, 'ubuntu')
run: |
yarn dist:linux
- name: Name Packages@Linux
if: contains(matrix.os, 'ubuntu')
run: |
mv dist/zingo_pc_${{ env.VERSION }}_amd64.deb dist/Zingo_pc_${{ env.VERSION }}_amd64.deb
- name: Upload artifacts-deb
uses: actions/upload-artifact@v1
if: contains(matrix.os, 'ubuntu')
with:
name: ${{ matrix.os }}
path: dist/Zingo_pc_${{ env.VERSION }}_amd64.deb
- name: Upload artifacts-AppImage
uses: actions/upload-artifact@v1
if: contains(matrix.os, 'ubuntu')
with:
name: ${{ matrix.os }}
path: dist/Zingo-pc-${{ env.VERSION }}.AppImage