2021-12-27 19:24:34 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-06-17 05:32:14 +02:00
|
|
|
branches: [master]
|
2021-12-27 19:24:34 +01:00
|
|
|
pull_request:
|
|
|
|
schedule: [cron: "40 1 * * *"]
|
|
|
|
|
2022-09-03 00:09:30 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-12-27 19:24:34 +01:00
|
|
|
jobs:
|
|
|
|
install:
|
2023-01-31 21:29:29 +01:00
|
|
|
name: Rust ${{matrix.rust}} on ${{matrix.os == 'ubuntu' && 'Linux' || matrix.os == 'macos' && 'macOS' || matrix.os == 'windows' && 'Windows' || '???'}}
|
2022-07-15 19:06:35 +02:00
|
|
|
runs-on: ${{matrix.os}}-latest
|
2021-12-27 19:24:34 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-01-31 21:29:29 +01:00
|
|
|
os: [ubuntu, macos, windows]
|
|
|
|
rust: [nightly, beta, stable, 1.62.0, stable 18 months ago, stable minus 8 releases]
|
2022-07-15 19:06:35 +02:00
|
|
|
include:
|
2023-01-31 21:29:29 +01:00
|
|
|
- os: ubuntu
|
|
|
|
rust: 1.0.0
|
2022-11-26 03:56:18 +01:00
|
|
|
timeout-minutes: 45
|
2021-12-27 19:24:34 +01:00
|
|
|
steps:
|
2022-04-25 03:31:38 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-12-27 19:24:34 +01:00
|
|
|
- uses: ./
|
2022-09-25 14:29:24 +02:00
|
|
|
name: Run dtolnay/rust-toolchain${{contains(matrix.rust, ' ') && ' for ' || '@'}}${{matrix.rust}}
|
2021-12-27 19:24:34 +01:00
|
|
|
id: toolchain
|
|
|
|
with:
|
|
|
|
toolchain: ${{matrix.rust}}
|
2022-07-16 01:56:54 +02:00
|
|
|
- name: echo ${{'${{steps.toolchain.outputs.cachekey}}'}}
|
2022-07-15 19:40:08 +02:00
|
|
|
run: echo '${{steps.toolchain.outputs.cachekey}}'
|
2022-07-16 01:56:54 +02: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 19:24:34 +01:00
|
|
|
- run: rustc --version
|