2022-01-31 04:20:15 -05:00
|
|
|
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
|
2022-02-01 21:26:35 -05:00
|
|
|
run: ./configure CFLAGS='-O3'
|
2022-01-31 04:20:15 -05:00
|
|
|
- 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
|
2022-01-31 22:08:56 -05:00
|
|
|
- working-directory: pkgs/rust
|
|
|
|
name: fmt
|
|
|
|
run: cargo fmt --check
|