mirror of
https://github.com/trussed-dev/flexiber.git
synced 2026-03-11 16:35:17 -07:00
42 lines
791 B
YAML
42 lines
791 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
features:
|
|
- alloc
|
|
- heapless
|
|
- std
|
|
- alloc,derive
|
|
- heapless,derive
|
|
- std,derive
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Rust toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
|
|
- name: check formatting
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: --check
|
|
- name: Test with a feature subset
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --features ${{ matrix.features }} --verbose
|