mirror of
https://github.com/tailix/libkernaux.git
synced 2024-11-13 11:04:27 -05:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
debug: ['--disable-debug', '--enable-debug']
|
|
packages:
|
|
- configure: ''
|
|
- configure: '--without-all'
|
|
cargo: '--no-default-features'
|
|
- configure: '--without-all --with-ntoa'
|
|
cargo: '--no-default-features --features ntoa'
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
components: rustfmt, clippy
|
|
- name: autogen
|
|
run: ./autogen.sh
|
|
- name: configure
|
|
run: ./configure ${{matrix.debug}} ${{matrix.packages.configure}} CFLAGS='-O3'
|
|
- name: make
|
|
run: make
|
|
- name: install
|
|
run: sudo make install
|
|
- working-directory: bindings/rust
|
|
name: test
|
|
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
|