Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,31 @@ on:
name: CI

jobs:
build:
name: build
check:
name: check
runs-on: ubuntu-latest
env:
CARGO_TARGET_DIR: "./build"
steps:
- uses: actions/checkout@v2
- name: Rust Cache
uses: Swatinem/[email protected]
- uses: actions/checkout@v3
- name: cpp lint
uses: DoozyX/[email protected]
with:
source: '.'
extensions: 'cpp,h'
exclude: 'build'
style: Google
- name: rust cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
build/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: rust lint
run: cargo fmt -- --check && cargo clippy -- -D warnings && cargo check --all-targets --all-features
- name: cmake build
run: cmake -S . -B build && cmake --build build
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug && cmake --build build
Loading