Skip to content

A few CI improvements #148

A few CI improvements

A few CI improvements #148

Workflow file for this run

name: Build and test
on:
push:
branches:
- master
pull_request:
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
rust: [nightly, stable]
steps:
- uses: actions/checkout@v4
uses: dtolnay/rust-toolchain@master

Check failure on line 19 in .github/workflows/build-and-test.yaml

View workflow run for this annotation

GitHub Actions / Build and test

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-test.yaml (Line: 19, Col: 9): 'uses' is already defined
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
targets: x86_64-pc-windows-gnu
- name: Run cargo check
run: cargo check --all --bins --examples --tests --all-features
- name: Run cargo check (without dev-dependencies to catch missing feature flags)
if: startsWith(matrix.rust, 'nightly')
run: carg check -Z features=dev_dep
- name: Run cargo test
run: cargo test