Test Rust package on FreeBSD with Cirrus CI

This commit is contained in:
Alex Kotov 2022-02-01 08:08:56 +05:00
parent 5b97583201
commit fe44a98d76
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
2 changed files with 13 additions and 3 deletions

View File

@ -62,3 +62,13 @@ rust_freebsd_task:
- pkg install --yes autoconf automake
dependencies_rust_script:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
main_build_script:
- ./autogen.sh
- ./configure CFLAGS='-O3 -fPIC'
- make
- sudo make install
rust_test_script:
- cd pkgs/rust
- cargo test
- cargo clippy
- cargo fmt --check

View File

@ -26,9 +26,9 @@ jobs:
- working-directory: pkgs/rust
name: test
run: cargo test
- working-directory: pkgs/rust
name: fmt
run: cargo fmt --check
- working-directory: pkgs/rust
name: clippy
run: cargo clippy
- working-directory: pkgs/rust
name: fmt
run: cargo fmt --check