ci: Add basic CI with fmt and clippy for cxx-async
#6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install deps | |
run: sudo apt-get install libfmt-dev libgflags-dev | |
- name: Format | |
run: cargo fmt --all -- --check | |
- name: Clippy | |
working-directory: cxx-async | |
run: cargo clippy -- -D warnings | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
# - macos-latest | |
# - windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies on linux | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install libfmt-dev libgflags-dev | |
- name: Build | |
working-directory: cxx-async | |
run: cargo build |