mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-29 11:29:33 +01:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
schedule: [cron: "40 1 * * *"]
|
|
|
|
jobs:
|
|
install:
|
|
name: Rust ${{matrix.rust}} on ${{matrix.name}}
|
|
runs-on: ${{matrix.os}}-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
name: [Linux]
|
|
os: [ubuntu]
|
|
rust: [nightly, beta, stable, 1.62.0, 1.0.0]
|
|
include:
|
|
- name: macOS
|
|
os: macos
|
|
rust: nightly
|
|
- name: macOS
|
|
os: macos
|
|
rust: 1.62.0
|
|
- name: Windows
|
|
os: windows
|
|
rust: nightly
|
|
- name: Windows
|
|
os: windows
|
|
rust: 1.62.0
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: ./
|
|
name: Run dtolnay/rust-toolchain@${{matrix.rust}}
|
|
id: toolchain
|
|
with:
|
|
toolchain: ${{matrix.rust}}
|
|
- name: echo ${{'${{steps.toolchain.outputs.cachekey}}'}}
|
|
run: echo '${{steps.toolchain.outputs.cachekey}}'
|
|
- name: check ${{'${{steps.toolchain.outputs.cachekey}}'}}
|
|
if: matrix.rust == '1.62.0'
|
|
run: cmp -s <(echo ${{steps.toolchain.outputs.cachekey}}) <(echo 20220627a831)
|
|
shell: bash
|
|
- run: rustc --version
|