servicepoint-binding-ruby/.github/workflows/rust.yml
Vinzenz Schroeter 31dac283ef
All checks were successful
Rust / build (push) Successful in 5m1s
split ruby gem into separate repository
2025-02-16 17:09:26 +01:00

41 lines
925 B
YAML

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"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- 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 install -qy liblzma-dev
- name: install ruby
run: sudo apt-get install -qy ruby
- name: generate bindings
run: ./generate-binding.sh
- name: check that generated files did not change
run: output=$(git status --porcelain) && [ -z "$output" ]
- name: build default features
run: cargo build --all --verbose