Skip to content

ci

ci #17

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
features: [ "", "arrayvec", "heapless", "vec" ]
rust: [ "nightly", "nightly-2023-05-31", "nightly-2022-04-04" ]
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Build
run: cargo build --verbose --no-default-features ${{ matrix.features == '' && '' || '--features ' + matrix.features }}

Check failure on line 28 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / Rust

Invalid workflow file

The workflow is not valid. .github/workflows/rust.yml (Line: 28, Col: 12): Unexpected symbol: '+'. Located at position 46 within expression: matrix.features == '' && '' || '--features ' + matrix.features .github/workflows/rust.yml (Line: 30, Col: 12): Unexpected symbol: '+'. Located at position 46 within expression: matrix.features == '' && '' || '--features ' + matrix.features
- name: Run tests
run: cargo test --verbose --no-default-features ${{ matrix.features == '' && '' || '--features ' + matrix.features }}