3
0
Fork 0
mirror of https://github.com/dtolnay/rust-toolchain.git synced 2024-11-25 09:39:32 +01:00
rust-toolchain/.github/workflows/ci.yml
David Tolnay e645b0cf01
Time out workflows after 45 minutes
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions
jobs have started randomly stalling for that long, which is inconvenient
because it ties up a chunk of my runner quota. It apepars to be very
rare for a job to recover after stalling. It's better to time out
quicker and retry on a different runner.
2022-11-25 18:56:18 -08:00

61 lines
1.7 KiB
YAML

name: CI
on:
push:
branches: [master]
pull_request:
schedule: [cron: "40 1 * * *"]
permissions:
contents: read
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, stable 18 months ago, stable minus 8 releases]
include:
- name: macOS
os: macos
rust: nightly
- name: macOS
os: macos
rust: 1.62.0
- name: macOS
os: macos
rust: stable 18 months ago
- name: macOS
os: macos
rust: stable minus 8 releases
- name: Windows
os: windows
rust: nightly
- name: Windows
os: windows
rust: 1.62.0
- name: Windows
os: windows
rust: stable 18 months ago
- name: Windows
os: windows
rust: stable minus 8 releases
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: ./
name: Run dtolnay/rust-toolchain${{contains(matrix.rust, ' ') && ' for ' || '@'}}${{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