-
Notifications
You must be signed in to change notification settings - Fork 9
57 lines (42 loc) · 1.29 KB
/
build-mrpc.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
name: Build mRPC
on:
push:
branches: [ main ]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build mRPC, run tests and fmt
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout submodules
env:
DEPLOY_KEY_PROST: ${{ secrets.DEPLOY_KEY_PROST }}
run: |
mkdir $HOME/.ssh && echo "${DEPLOY_KEY_PROST}" > $HOME/.ssh/id_ed25519 && chmod 600 $HOME/.ssh/id_ed25519
git submodule update --init --recursive
- name: Install RDMA library
run: sudo apt install -y rdma-core libibverbs-dev librdmacm-dev libnuma-dev
- name: Install nightly rust toolchain
run: rustup show
- name: Run cargo check
run: cargo check
- name: Install cargo-make
uses: davidB/rust-cargo-make@v1
- name: Build phoenixos
run: cargo make build-phoenixos
- name: Build mRPC plugins
run: cargo make --cwd experimental/mrpc build-mrpc-plugins
- name: Build mRPC library and examples
run: cargo make --cwd experimental/mrpc build-mrpc-examples
- name: Run cargo test
run: cargo test
env:
RUST_BACKTRACE: 1
- name: Run cargo clippy
run: cargo clippy
- name: Check formatting
run: cargo fmt --all -- --check