-
Notifications
You must be signed in to change notification settings - Fork 31
45 lines (35 loc) · 1.28 KB
/
pr-check.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
name: Pull Request Check & Build
on:
pull_request:
types:
- opened
- synchronize
- closed
jobs:
check:
runs-on: ubuntu-20.04
steps:
- name: "[Setup] Free Disk Space (insightsengineering/disk-space-reclaimer)"
uses: insightsengineering/[email protected]
- name: "[Setup] Linux Tools"
run: sudo apt install -y cmake pkg-config libssl-dev build-essential clang libclang-dev curl protobuf-compiler
- name: "[Setup] Rust"
run: |
TLCHNL=nightly-2022-11-03-x86_64-unknown-linux-gnu
TLCHNS=nightly-2022-11-03
curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $TLCHNL
rustup target add wasm32-unknown-unknown --toolchain $TLCHNS
rustup component add rustfmt --toolchain $TLCHNS
rustup component add clippy --toolchain $TLCHNS
cargo install cargo-expand --locked --version 1.0.34
- name: Checkout Sources (actions/checkout)
uses: actions/checkout@v3
- name: "[Ceck] cargo fmt"
run: |
cargo fmt --check
- name: "[Check] cargo clippy"
run: |
cargo clippy --release -- -Dwarnings
- name: "[Check] cargo test"
run: |
SKIP_WASM_BUILD=1 cargo test --release