-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (31 loc) · 861 Bytes
/
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
on: [push, pull_request]
name: CI
jobs:
check:
name: Run tests and clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: cargo clippy
run: cargo clippy -- -D warnings
- name: cargo test
run: cargo test
check-no_std:
name: Check no_std
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
run: rustup target add aarch64-unknown-none
- name: cargo check
run: cargo check --target aarch64-unknown-none --no-default-features --features ahash
fmt:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: cargo fmt -- --check
run: cargo fmt -- --check