-
Notifications
You must be signed in to change notification settings - Fork 4
/
.build.yml
52 lines (52 loc) · 1.55 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
48
49
50
51
52
image: "debian/stable"
arch: "amd64"
shell: false
sources:
- "https://git.sr.ht/~paxswill/mlx9064x"
tasks:
- install_rustup: |
curl \
--proto '=https' \
--tlsv1.2 \
--silent \
--show-error \
--fail \
--location \
--output rustup-init \
https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
chmod +x ./rustup-init
./rustup-init \
--profile minimal \
--quiet \
-y
source $HOME/.cargo/env
rustup component add clippy
rustup component add rustfmt
- check_nono: |
source $HOME/.cargo/env
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-nono
cd mlx9064x
cargo nono check --package mlx9064x --no-default-features
- test: |
cd mlx9064x
source $HOME/.cargo/env
# Test with and without std
cargo test
cargo test --package mlx9064x --no-default-features --features libm
- test-docs: |
cd mlx9064x
source $HOME/.cargo/env
# Ensure all doc comments are well formed (even private ones)
cargo rustdoc --package mlx9064x -- \
--document-private-items \
--deny rustdoc::broken_intra_doc_links \
--deny rustdoc::private_intra_doc_links \
--deny rustdoc::invalid_codeblock_attributes \
--deny rustdoc::bare_urls
- lints: |
cd mlx9064x
source $HOME/.cargo/env
cargo clippy -- -D warnings
cargo clippy --tests -- -D warnings
cargo clippy --benches -- -D warnings
cargo fmt -- --check