-
Notifications
You must be signed in to change notification settings - Fork 71
95 lines (76 loc) · 2.38 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
name: build
on:
push:
tags:
- "*.*.*"
env:
CARGO_TERM_COLOR: always
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Install system dependencies
run: |
sudo apt update
sudo apt install -y libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
file \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- name: Install NPM dependencies
run: npm install
- name: Build
run: npm run tauri build -- -v
- name: Prepare ZIP
run: |
cd src-tauri/target/release
zip -r gmpublisher_linux64.zip gmpublisher libsteam_api.so
- name: Release
uses: softprops/action-gh-release@v1
with:
files: src-tauri/target/release/gmpublisher_linux64.zip
fail_on_unmatched_files: true
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Install NPM dependencies
run: npm install
- name: Build
run: npm run tauri build -- -v
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
- name: Release
uses: softprops/action-gh-release@v1
with:
files: src-tauri/target/release/bundle/msi/gmpublisher_*.msi
fail_on_unmatched_files: true
build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Install NPM dependencies
run: npm install
- name: Install Rust targets
run: rustup target add x86_64-apple-darwin
- name: Build
run: npm run tauri build -- --target universal-apple-darwin -v
- name: Copy Steamworks SDK to bundle
run: cp src-tauri/lib/steam_api/redistributable_bin/osx/libsteam_api.dylib src-tauri/target/universal-apple-darwin/release/bundle/macos/gmpublisher.app/Contents/MacOS/libsteam_api.dylib
- name: Prepare ZIP
run: |
cd src-tauri/target/universal-apple-darwin/release/bundle/macos
zip -r gmpublisher_macOS.app.zip gmpublisher.app
- name: Release
uses: softprops/action-gh-release@v1
with:
files: src-tauri/target/universal-apple-darwin/release/bundle/macos/gmpublisher_macOS.app.zip
fail_on_unmatched_files: true