-
Notifications
You must be signed in to change notification settings - Fork 17
54 lines (51 loc) · 1.29 KB
/
ci.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
name: RDMA-SYS-CI
on:
pull_request:
branches: [master]
push:
branches: [master]
schedule: [cron: "0 */24 * * *"]
env:
CI_RUST_TOOLCHAIN: 1.61.0
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Git Sumbodule Update
run: |
git submodule update --remote --recursive
- name: Install dependencies
run: |
# Install libibverbs-dev as dependency automatically
sudo apt-get install -y librdmacm-dev
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.CI_RUST_TOOLCHAIN }}
override: true
- name: Test
run: |
./rdma-env-setup/scripts/setup.sh
./scripts/run.sh
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
fmt:
name: Fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.CI_RUST_TOOLCHAIN }}
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check