mirror of
https://github.com/actions-rust-lang/setup-rust-toolchain.git
synced 2024-12-26 17:00:34 +01:00
Create ci.yml
This commit is contained in:
parent
e71ba78d1b
commit
e6f87b00b9
1 changed files with 31 additions and 0 deletions
31
.github/workflows/ci.yml
vendored
Normal file
31
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
|
||||||
|
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:
|
||||||
|
rust: [nightly, beta, stable]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: ./
|
||||||
|
name: Run actions-rust-lang/setup-rust-toolchain ${{matrix.rust}}
|
||||||
|
id: toolchain
|
||||||
|
with:
|
||||||
|
toolchain: ${{matrix.rust}}
|
||||||
|
- name: Check ${{'${{steps.toolchain.outputs.rustc-version}}'}}
|
||||||
|
run: echo '${{steps.toolchain.outputs.rustc-version}}'
|
||||||
|
- name: Check ${{'${{steps.toolchain.outputs.cargo-version}}'}}
|
||||||
|
run: echo '${{steps.toolchain.outputs.cargo-version}}'
|
||||||
|
- name: Check ${{'${{steps.toolchain.outputs.rustup-version}}'}}
|
||||||
|
run: echo '${{steps.toolchain.outputs.rustup-version}}'
|
||||||
|
- run: rustc --version && cargo --version
|
||||||
|
shell: bash
|
Loading…
Reference in a new issue