A .builds/rust_fedora.yaml => .builds/rust_fedora.yaml +34 -0
@@ 0,0 1,34 @@
+image: fedora/40
+packages:
+ - nodejs
+ - npm
+ - rsync
+sources:
+ - https://git.sr.ht/~claxxx/yafig
+tasks:
+ - install_rust: |
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
+ . "$HOME/.cargo/env"
+ - build: |
+ cd yahig
+ cargo build
+ - lint: |
+ cd yahig
+ rustup component add clippy
+ cargo clippy -- -D warnings
+ - format: |
+ cd yahig
+ rustup component add rustfmt
+ cargo fmt -- --check
+ - test: |
+ cd yahig
+ cargo test
+ - coverage: |
+ cd yahig
+ cargo install cargo-tarpaulin
+ cargo tarpaulin --ignore-tests
+ - audit: |
+ cd yahig
+ cargo install cargo-audit
+ cargo audit --ignore RUSTSEC-2023-0071
+