-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (40 loc) · 1.41 KB
/
build.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
name: build
on:
push:
branches: [master]
pull_request:
branches: [master]
merge_group:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: install native deps
run: sudo apt update && sudo apt install clang llvm pkg-config nettle-dev fontforge
- run: |
rustup toolchain install nightly
cargo +nightly install cargo-udeps --locked
- run: cargo fmt -- --check
- run: ./download_font.sh
- run: cargo +nightly udeps --no-default-features --features dev
- run: cargo +nightly udeps --no-default-features --features discord_client,mongo_db,plot_plotters_static
- uses: actions-rs/clippy-check@v1
with:
name: dev clippy
token: ${{ secrets.GITHUB_TOKEN }}
args: --no-default-features --features dev
- uses: actions-rs/clippy-check@v1
with:
name: prod clippy
token: ${{ secrets.GITHUB_TOKEN }}
args: --no-default-features --features discord_client,mongo_db,plot_plotters_static
- name: dev test
run: cargo test --no-default-features --features dev
- name: prod test
run: cargo test --no-default-features --features discord_client,mongo_db,plot_plotters_static