Skip to content

feat: add action file #5

feat: add action file

feat: add action file #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
merge_group:
types: [checks_requested]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
msrv:
name: MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rust-lang/[email protected]
- name: Determine MSRV
id: msrv
uses: ./
with:
manifest-path: ./test-workspace/Cargo.toml
outputs:
msrv: "${{ steps.msrv.outputs.msrv }}"
build:
needs: msrv
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain:
- { name: msrv, version: "${{ needs.msrv.outputs.msrv }}" }
- { name: stable, version: stable }
name: Test / ${{ matrix.toolchain.name }}
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rust-lang/[email protected]
with:
toolchain: ${{ matrix.toolchain.version }}
- name: Test
run: cargo build