-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 815 Bytes
/
test.yml
File metadata and controls
37 lines (34 loc) · 815 Bytes
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
name: Test
on:
pull_request:
branches:
- master
paths-ignore:
- '**/README.md'
push:
branches:
- master
paths-ignore:
- '**/README.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install clang
run: |
apt-get update && apt-get install -y libclang-dev clang || \
apk add --no-cache libgcc clang-dev || \
echo "Using pre-installed clang"
continue-on-error: true
- name: Check format
run: cargo fmt --check
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Check
run: cargo check