bump version of sbp-settings #245
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: CI | |
on: | |
push: | |
branches: | |
- "main" | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+*" | |
pull_request: | |
jobs: | |
lint: | |
name: Format and lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- uses: actions-rs/cargo@v1 | |
name: Format Check | |
with: | |
command: fmt | |
args: -- --check | |
- uses: actions-rs/cargo@v1 | |
name: Clippy | |
with: | |
command: clippy | |
args: --all-features -- -D warnings | |
test: | |
name: Tests | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-20.04 | |
binary_target: x86_64-unknown-linux-musl | |
- os: ubuntu-20.04 | |
binary_target: x86_64-unknown-linux-gnu | |
- os: macos-14 | |
binary_target: x86_64-apple-darwin | |
- os: windows-2019 | |
binary_target: x86_64-pc-windows-msvc | |
runs-on: ${{ matrix.os }} | |
env: | |
RUST_BACKTRACE: 1 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Install rust ${{ matrix.binary_target }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable-${{ matrix.binary_target }} | |
profile: minimal | |
- name: Run tests (Windows) | |
env: | |
LIBCLANG_PATH: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/Llvm/x64/bin" | |
if: matrix.os == 'windows-2019' | |
run: cargo test | |
- name: Run tests | |
if: matrix.os != 'windows-2019' | |
run: cargo test -- --nocapture |