-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.25 KB
/
build-extra-binaries.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
name: "Build library binaries"
on:
workflow_dispatch:
jobs:
build-x86_64-apple-darwin:
name: "Build macOS binary"
runs-on: "macos-latest"
steps:
- uses: "actions/checkout@v3"
- shell: "bash"
run: |
mkdir '.cargo'
echo '[registries.crates-io]' >> .cargo/config.toml
echo 'protocol = "sparse"' >> .cargo/config.toml
- uses: "actions-rust-lang/setup-rust-toolchain@v1"
- shell: "bash"
run: |
cargo build --all-features --release
- uses: "actions/upload-artifact@v3"
with:
name: "built library"
path: "./target/release/libdeclavatar.dylib"
build-x86_64-unknown-linux-gnu:
name: "Build Linux binary"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- shell: "bash"
run: |
mkdir '.cargo'
echo '[registries.crates-io]' >> .cargo/config.toml
echo 'protocol = "sparse"' >> .cargo/config.toml
- uses: "actions-rust-lang/setup-rust-toolchain@v1"
- shell: "bash"
run: |
cargo build --all-features --release
- uses: "actions/upload-artifact@v3"
with:
name: "built library"
path: "./target/release/libdeclavatar.so"