chuniio-yubideck/vendor/shared_memory/.github/workflows/rust.yml
2023-12-24 03:43:42 +07:00

59 lines
1.2 KiB
YAML

name: build
on:
push:
branches: [master]
pull_request:
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
toolchain: [stable]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout Sources
uses: actions/checkout@v2.4.0
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
components: rustfmt, clippy
- name: Check Code Format
uses: actions-rs/cargo@v1.0.3
with:
command: fmt
args: -- --check
- name: Code Lint
uses: actions-rs/cargo@v1.0.3
with:
command: clippy
args: --all-targets -- -D warnings
- name: Build
uses: actions-rs/cargo@v1.0.3
with:
command: build
- name: Tests
uses: actions-rs/cargo@v1.0.3
with:
command: test
- name: Examples
uses: actions-rs/cargo@v1.0.3
env:
RUST_LOG: "trace"
with:
command: run
args: --all-features --example mutex -- 15