generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 17
91 lines (85 loc) · 2.71 KB
/
build-cli.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
name: Build CLI
on:
push:
branches:
- main
pull_request:
jobs:
build_aarch64_apple_darwin:
runs-on: macos-latest
name: Build aarch64-apple-darwin target
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup toolchain install stable
- name: Run Build Script
run: |
cd crates/web5_cli/build/aarch64_apple_darwin
./build
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: web5-aarch64-apple-darwin
path: target/aarch64-apple-darwin/release/web5_cli
build_x86_64_apple_darwin:
runs-on: macos-12
name: Build x86_64-apple-darwin target
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup toolchain install stable
- name: Run Build Script
run: |
cd crates/web5_cli/build/x86_64_apple_darwin
./build
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: web5-x86_64-apple-darwin
path: target/x86_64-apple-darwin/release/web5_cli
build_x86_64_unknown_linux_gnu:
runs-on: ubuntu-latest
name: Build x86_64-unknown-linux-gnu target
steps:
- uses: actions/checkout@v2
- name: Run Build Script
run: |
cd crates/web5_cli/build/x86_64_unknown_linux_gnu
./build
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: web5-x86_64-linux-gnu
path: target/x86_64-unknown-linux-gnu/release/web5_cli
build_x86_64_unknown_linux_musl:
runs-on: ubuntu-latest
name: Build x86_64-unknown-linux-musl target
steps:
- uses: actions/checkout@v2
- name: Run Build Script
run: |
cd crates/web5_cli/build/x86_64_unknown_linux_musl
./build
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: web5-x86_64-linux-musl
path: target/x86_64-unknown-linux-musl/release/web5_cli
build_x86_64_pc_windows_msvc:
runs-on: windows-latest
name: Build x86_64-pc-windows-msvc target
steps:
- uses: actions/checkout@v2
- name: Install Rust 1.74.0
run: rustup toolchain install 1.74.0
- name: Set Rust 1.74.0 as default
run: rustup default 1.74.0
- name: Add MSVC target
run: rustup target add x86_64-pc-windows-msvc
- name: Build executable
run: cargo build --target x86_64-pc-windows-msvc --release --package web5_cli
- name: Upload executable
uses: actions/[email protected]
with:
name: web5-x86_64-pc-windows-msvc
path: target/x86_64-pc-windows-msvc/release/web5_cli