Skip to content

add github ci config #1

add github ci config

add github ci config #1

name: Build and test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
cargo-args:
[
"",
--features threads,
]
steps:
- uses: actions/checkout@v3
- name: Check
run: |
cargo fmt --check
cargo clippy ${{ matrix.cargo-args }} -- -D warnings
- name: Build
run: cargo build ${{ matrix.cargo-args }} --verbose
- name: Run tests
run: cargo test ${{ matrix.cargo-args }} --verbose