libkernaux/.github/workflows/rust.yml

41 lines
954 B
YAML
Raw Normal View History

name: Rust
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
2022-06-13 07:02:05 +00:00
strategy:
matrix:
packages:
- {}
- configure: '--without-all'
cargo: '--no-default-features'
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: autogen
run: ./autogen.sh
- name: configure
2022-06-13 07:02:05 +00:00
run: ./configure ${{matrix.packages.configure}} CFLAGS='-O3'
- name: make
run: make
- name: install
run: sudo make install
2022-06-13 07:02:05 +00:00
- working-directory: bindings/rust
name: test
2022-06-13 08:29:52 +00:00
run: cargo test ${{matrix.packages.cargo}}
- working-directory: bindings/rust
name: clippy
run: cargo clippy
- working-directory: bindings/rust
name: fmt
run: cargo fmt --check