Only support a rust-toolchain.toml file

This commit is contained in:
David Sherret 2023-03-09 15:21:05 -05:00
parent e12eda571d
commit 9bde10f6e6
4 changed files with 39 additions and 165 deletions

View file

@ -2,7 +2,7 @@ name: CI
on:
push:
branches: [master]
branches: [main]
pull_request:
workflow_dispatch:
schedule: [cron: "40 1 * * *"]
@ -25,8 +25,13 @@ jobs:
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- name: Create toolchain file
run: |
echo "[toolchain]" >> rust-toolchain.toml
echo "channel = \"${{matrix.rust}}\"" >> rust-toolchain.toml
cat rust-toolchain.toml
- uses: ./
name: Run dtolnay/rust-toolchain${{contains(matrix.rust, ' ') && ' for ' || '@'}}${{matrix.rust}}
name: Run dsherret/rust-toolchain-file${{contains(matrix.rust, ' ') && ' for ' || '@'}}${{matrix.rust}}
id: toolchain
with:
toolchain: ${{matrix.rust}}