Skip to content

.github/workflows/workspace.yml #759

.github/workflows/workspace.yml

.github/workflows/workspace.yml #759

Workflow file for this run

on:
push:
branches-ignore:
- 'ci-test'
tags-ignore:
- '**'
pull_request:
schedule:
- cron: '13 15 * * *'
workflow_dispatch:
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
rust_toolchain:
- 'stable'
- 'beta'
- 'nightly'
- '1.75.0'
target:
- os: 'ubuntu-22.04'
triple: 'x86_64-unknown-linux-gnu'
- os: 'macos-12'
triple: 'x86_64-apple-darwin'
- os: 'windows-2022'
triple: 'x86_64-pc-windows-msvc'
continue-on-error: ${{ matrix.rust_toolchain == 'nightly' }}
runs-on: ${{ matrix.target.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust_toolchain }}
target: ${{ matrix.target.triple }}
components: clippy
- name: Build Workspace
run: |
rustc --version
cargo build --workspace --no-default-features
cargo build --workspace
cargo test --workspace --no-run
- name: Test Workspace
run: |
cargo test --workspace
- uses: actions-rs/clippy@master
if: ${{ matrix.rust_toolchain == 'stable' || matrix.rust_toolchain == 'beta' }}
with:
args: --workspace