Skip to content

Merge InvArch into main and restructure workspace #361

Merge InvArch into main and restructure workspace

Merge InvArch into main and restructure workspace #361

Workflow file for this run

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