servicepoint-binding-uniffi/.github/workflows/rust.yml

36 lines
795 B
YAML
Raw Normal View History

2024-06-05 20:43:55 +02:00
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
# Make sure CI fails on all warnings, including Clippy lints
RUSTFLAGS: "-Dwarnings"
2024-06-05 20:43:55 +02:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update repos
run: sudo apt-get update -qq
- name: Install rust toolchain
run: sudo apt-get install -qy cargo rust-clippy
- name: install lzma
run: sudo apt-get update && sudo apt-get install -y liblzma-dev
- name: Run Clippy
run: cargo clippy --all-targets --all-features
- name: build default features
run: cargo build --all --verbose
- name: test default features
run: cargo test --all --verbose