-
Notifications
You must be signed in to change notification settings - Fork 84
123 lines (107 loc) · 4.38 KB
/
release.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
name: Release binaries for all platforms
on:
push:
tags:
- "v*.*.*"
env:
CARGO_TERM_COLOR: always
jobs:
release-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: install Tauri
run: cargo install tauri-cli --profile dev
- name: npm install (desktop)
working-directory: desktop
run: npm install
- name: npm install (librqbit/webui)
working-directory: crates/librqbit/webui
run: npm install
- name: cargo tauri build
working-directory: desktop
run: cargo tauri build --ci
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
desktop/src-tauri/target/release/bundle/msi/rqbit-desktop_5.0.1_x64_en-US.msi
- name: Build release
run: cargo build --profile release-github
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
target/release-github/rqbit.exe
cross-compile-on-macos:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: install Tauri
run: cargo install tauri-cli --profile dev
- name: npm install (desktop)
working-directory: desktop
run: npm install
- name: npm install (librqbit/webui)
working-directory: crates/librqbit/webui
run: npm install
- name: cargo tauri build
working-directory: desktop
run: rustup target add aarch64-apple-darwin &&
cargo tauri build --target universal-apple-darwin --ci
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
desktop/src-tauri/target/universal-apple-darwin/release/bundle/dmg/rqbit-desktop_5.0.1_universal.dmg
- name: Make a directory for output artifacts
run: mkdir -p target/artifacts
- name: Build release OSX universal binary
run: rustup target install aarch64-apple-darwin &&
cargo build --profile release-github &&
cargo build --profile release-github --target aarch64-apple-darwin &&
lipo ./target/release-github/rqbit ./target/aarch64-apple-darwin/release-github/rqbit -create -output ./target/artifacts/rqbit-osx-universal
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
target/artifacts/rqbit-osx-universal
- name: install linux cross compiler
run: brew tap messense/macos-cross-toolchains &&
brew install x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu arm-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf
- name: Build release linux x86_64 binary
run: rustup target install x86_64-unknown-linux-gnu &&
make release-linux-x86_64 &&
mv target/x86_64-unknown-linux-gnu/release-github/rqbit target/artifacts/rqbit-linux-static-x86_64
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
target/artifacts/rqbit-linux-static-x86_64
- name: Build release linux armv6 binary
run: rustup target install arm-unknown-linux-gnueabihf &&
make release-linux-armv6 &&
mv target/arm-unknown-linux-gnueabihf/release-github/rqbit target/artifacts/rqbit-linux-static-armv6
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
target/artifacts/rqbit-linux-static-armv6
- name: Build release linux armv7 binary
run: rustup target install armv7-unknown-linux-gnueabihf &&
make release-linux-armv7 &&
mv target/armv7-unknown-linux-gnueabihf/release-github/rqbit target/artifacts/rqbit-linux-static-armv7
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
target/artifacts/rqbit-linux-static-armv7
- name: Build release linux aarch64 binary
run: rustup target install aarch64-unknown-linux-gnu &&
make release-linux-aarch64 &&
mv target/aarch64-unknown-linux-gnu/release-github/rqbit target/artifacts/rqbit-linux-static-aarch64
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
target/artifacts/rqbit-linux-static-aarch64