fix: check for empty commit in update binding workflows #8
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: Rust validation | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
rust: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Check fmt | |
run: cargo fmt --check | |
- name: Build | |
run: | | |
${{ matrix.os == 'macos-latest' && 'brew install ninja' | |
|| (matrix.os == 'windows-latest' && 'choco install ninja' | |
|| 'echo "ninja already installed"') }} | |
cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose |