Merge InvArch into main and restructure workspace #361
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: Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/build.yml' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
detect-directory-changes: | |
name: "Detect Directory Changes" | |
runs-on: ubuntu-latest | |
outputs: | |
changed: ${{ steps.detect.outputs.changed }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Detect Directory Changes | |
id: detect | |
uses: tchupp/actions-detect-directory-changes@v1 | |
with: | |
included-paths: "tinkernet,invarch" | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
project: ${{ fromJSON(needs.detect-directory-changes.outputs.changed) }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup for checks | |
run: sudo apt install -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler | |
- name: Build [${{ matrix.project }}] | |
working-directory: ./${{ matrix.project }} | |
run: cargo build --verbose | |
- name: Run tests [${{ matrix.project }}] | |
working-directory: ./${{ matrix.project }} | |
run: cargo test --verbose | |
- name: Run clippy [${{ matrix.project }}] | |
working-directory: ./${{ matrix.project }} | |
run: cargo clippy -- -D warnings | |
- name: Run cargofmt [${{ matrix.project }}] | |
working-directory: ./${{ matrix.project }} | |
run: cargo +stable fmt --all -- --check |