-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (46 loc) · 1.19 KB
/
build.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
name: Build
on:
push:
branches:
- master
- main
paths:
- "**.rs"
- "**.toml"
- "**.lock"
- ".github/workflows/*.yml"
jobs:
publish-linux:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out
uses: actions/checkout@v2
- name: Install ffi toolchain (1.76.0)
run: |
rustup install 1.76.0-x86_64-unknown-linux-gnu
rustup default 1.76.0-x86_64-unknown-linux-gnu
- name: Build Linux
run: |
cargo build --release
- uses: actions/upload-artifact@v4
with:
path: "target/release/libdrift_ffi_sys.so"
name: libdrift_ffi_sys.so
publish-mac:
runs-on: macos-latest
timeout-minutes: 15
steps:
- name: Check out
uses: actions/checkout@v2
- name: Install ffi toolchain (1.76.0)
run: |
rustup install 1.76.0-x86_64-apple-darwin
rustup default 1.76.0-x86_64-apple-darwin
- name: Build Mac
run: |
cargo build --release
- uses: actions/upload-artifact@v4
with:
path: "target/release/libdrift_ffi_sys.dylib"
name: libdrift_ffi_sys.dylib