3
0
Fork 0
mirror of https://github.com/dtolnay/rust-toolchain.git synced 2024-11-23 00:59:30 +01:00
rust-toolchain/.github/workflows/ci.yml
2022-06-04 17:21:35 -07:00

26 lines
726 B
YAML

name: CI
on:
push:
pull_request:
schedule: [cron: "40 1 * * *"]
jobs:
install:
name: Rust ${{matrix.rust}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# attempt miri only on nightly; everything else on all 3 toolchains
rust: ${{fromJSON(github.ref_name == 'miri' && '["nightly"]' || '["nightly", "beta", "stable"]')}}
steps:
- uses: actions/checkout@v3
- uses: ./
name: Run dtolnay/rust-toolchain@${{matrix.rust}}
id: toolchain
with:
toolchain: ${{matrix.rust}}
- name: Check ${{'${{steps.toolchain.outputs.version}}'}}
run: echo '${{steps.toolchain.outputs.version}}'
- run: rustc --version