-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (40 loc) · 1.35 KB
/
Copy pathdeploy.yml
File metadata and controls
43 lines (40 loc) · 1.35 KB
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
name: Deployment Build
on: [workflow_dispatch]
env:
CARGO_TERM_COLOR: always
jobs:
deploy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, windows-2019, ubuntu-latest]
include:
- os: ubuntu-latest
command: |
sudo apt-get update && sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev libgtk-3-dev
cd postsack-native
cargo install cargo-bundle
./build_linux.sh
binary: target/release/bundle/deb/postsack_1.0.0_amd64.deb
- os: macOS-latest
command: |
cd postsack-native
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
cargo install cargo-bundle
./build_mac.sh
binary: target/postsack.zip
- os: windows-2019
command: |
cd postsack-native
.\build_windows.bat
binary: target\release\postsack.exe
steps:
- name: Production Build
uses: actions/checkout@v2
- run: ${{ matrix.command }}
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: ${{ matrix.binary }}