mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2025-06-08 03:36:37 +00:00
Fix workflows so pr isn't messy
This commit is contained in:
parent
5ab0241b57
commit
75ee89e83d
3 changed files with 51 additions and 19 deletions
44
.github/workflows/ci.yml
vendored
Normal file
44
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
schedule: [cron: "40 1 * * *"]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
install:
|
||||
name: Rust ${{matrix.rust}} on ${{matrix.os == 'ubuntu' && 'Linux' || matrix.os == 'macos' && 'macOS' || matrix.os == 'windows' && 'Windows' || '???'}}
|
||||
runs-on: ${{matrix.os}}-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu, macos, windows]
|
||||
rust: [nightly, beta, stable, 1.62.0, stable 18 months ago, stable minus 8 releases]
|
||||
include:
|
||||
- os: ubuntu
|
||||
rust: 1.0.0
|
||||
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
|
||||
- run: cargo init . --bin --name CI
|
||||
if: matrix.rust == 'nightly' || matrix.rust == 'beta' || matrix.rust == 'stable'
|
||||
- run: cargo add syn@1
|
||||
if: matrix.rust == 'nightly' || matrix.rust == 'beta' || matrix.rust == 'stable'
|
||||
- run: cargo check
|
||||
if: matrix.rust == 'nightly' || matrix.rust == 'beta' || matrix.rust == 'stable'
|
12
.github/workflows/sync.yml
vendored
12
.github/workflows/sync.yml
vendored
|
@ -1,12 +0,0 @@
|
|||
name: Rebase Upstream
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 0" # run once a week
|
||||
workflow_dispatch: # run manually
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: imba-tjd/rebase-upstream-action@master
|
Loading…
Add table
Add a link
Reference in a new issue