rust-toolchain/.github/workflows/ci.yml

61 lines
1.6 KiB
YAML
Raw Normal View History

2021-12-27 20:24:34 +02:00
name: CI
on:
push:
branches: [master]
2021-12-27 20:24:34 +02:00
pull_request:
schedule: [cron: "40 1 * * *"]
2022-09-03 01:09:30 +03:00
permissions:
contents: read
2021-12-27 20:24:34 +02:00
jobs:
install:
name: Rust ${{matrix.rust}} on ${{matrix.name}}
runs-on: ${{matrix.os}}-latest
2021-12-27 20:24:34 +02:00
strategy:
fail-fast: false
matrix:
name: [Linux]
os: [ubuntu]
rust: [nightly, beta, stable, 1.62.0, 1.0.0, 18 months ago, stable minus 8 releases]
include:
- name: macOS
os: macos
rust: nightly
2022-07-16 02:56:54 +03:00
- name: macOS
os: macos
rust: 1.62.0
- name: macOS
os: macos
rust: 18 months ago
- name: macOS
os: macos
rust: stable minus 8 releases
- name: Windows
os: windows
rust: nightly
2022-07-16 02:56:54 +03:00
- name: Windows
os: windows
rust: 1.62.0
- name: Windows
os: windows
rust: 18 months ago
- name: Windows
os: windows
rust: stable minus 8 releases
2021-12-27 20:24:34 +02:00
steps:
2022-04-25 04:31:38 +03:00
- uses: actions/checkout@v3
2021-12-27 20:24:34 +02:00
- uses: ./
name: Run dtolnay/rust-toolchain${{contains(matrix.rust, ' ') && ' for ' || '@'}}${{matrix.rust}}
2021-12-27 20:24:34 +02:00
id: toolchain
with:
toolchain: ${{matrix.rust}}
2022-07-16 02:56:54 +03:00
- name: echo ${{'${{steps.toolchain.outputs.cachekey}}'}}
2022-07-15 20:40:08 +03:00
run: echo '${{steps.toolchain.outputs.cachekey}}'
2022-07-16 02:56:54 +03:00
- name: check ${{'${{steps.toolchain.outputs.cachekey}}'}}
if: matrix.rust == '1.62.0'
run: cmp -s <(echo ${{steps.toolchain.outputs.cachekey}}) <(echo 20220627a831)
shell: bash
2021-12-27 20:24:34 +02:00
- run: rustc --version