1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00
libkernaux/.github/workflows/rust.yml
2022-02-02 07:37:13 +05:00

34 lines
741 B
YAML

name: Rust
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
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 CFLAGS='-O3'
- name: make
run: make
- name: install
run: sudo make install
- working-directory: pkgs/rust
name: test
run: cargo test
- working-directory: pkgs/rust
name: clippy
run: cargo clippy
- working-directory: pkgs/rust
name: fmt
run: cargo fmt --check