| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- name: CI Checks
- on: [push, pull_request]
- jobs:
- test-units:
- strategy:
- matrix:
- os: [ubuntu-latest, macos-latest]
- runs-on: ${{ matrix.os }}
- steps:
- - uses: actions/checkout@v2
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- - uses: Swatinem/rust-cache@v1
- - name: Install dependencies (Linux)
- run: |
- sudo apt update
- sudo apt -y install build-essential clang libclang-dev llvm-dev libudev-dev pkg-config
- if: matrix.os == 'ubuntu-latest'
- - name: Install dependencies (macOS)
- run: |
- brew install llvm
- if: matrix.os == 'macos-latest'
- - name: Run test units
- run: |
- make test
- - name: Compile all bins
- run: |
- ./script/compile_all_bins.sh
- feature-powerset:
- name: Test crate feature powerset on ${{ matrix.os }}
- runs-on: ${{ matrix.os }}
- strategy:
- matrix:
- os: [ubuntu-latest, macos-latest]
- steps:
- - uses: actions/checkout@v2
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- - uses: taiki-e/install-action@cargo-hack
- - uses: Swatinem/rust-cache@v1
- - name: Install dependencies (Linux)
- run: |
- sudo apt update
- sudo apt -y install build-essential clang libclang-dev llvm-dev libudev-dev pkg-config
- if: matrix.os == 'ubuntu-latest'
- - name: Install dependencies (macOS)
- run: |
- brew install llvm
- if: matrix.os == 'macos-latest'
- - name: Run feature powerset builds
- run: |
- make check
- fmt:
- name: rustfmt
- timeout-minutes: 30
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: nightly
- override: true
- - run: |
- rustup component add rustfmt
- cargo fmt -- --check
|