generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 17
72 lines (67 loc) · 2.02 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
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