diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
deleted file mode 100644
index c77aff2..0000000
--- a/.github/workflows/ci.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-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'
diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml
new file mode 100644
index 0000000..e3da3f6
--- /dev/null
+++ b/.github/workflows/sync.yml
@@ -0,0 +1,12 @@
+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
diff --git a/README.md b/README.md
index 6ec4744..01197ca 100644
--- a/README.md
+++ b/README.md
@@ -17,16 +17,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- - uses: dtolnay/rust-toolchain@stable
+ - uses: IronCoreLabs/rust-toolchain@stable
- run: cargo test --all-features
```
The selection of Rust toolchain is made based on the particular @rev of this
-Action being requested. For example "dtolnay/rust-toolchain@nightly" pulls in
-the nightly Rust toolchain, while "dtolnay/rust-toolchain@1.42.0" pulls in
+Action being requested. For example "IronCoreLabs/rust-toolchain@nightly" pulls in
+the nightly Rust toolchain, while "IronCoreLabs/rust-toolchain@1.42.0" pulls in
1.42.0.
-
+## Toolchain File
+
+The [Rust toolchain file](https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file) is supported.
+If present it will be used to populate `toolchain`, `components` and `targets` parameters. If those parameters are explicitly set as inputs to the action, they will take precedence over the values in the toolchain file. To use only the toolchain file for parameters, pass no inputs and set the @rev to @master.
## Inputs
@@ -42,7 +45,7 @@ All inputs are optional.
stable
, nightly
, 1.42.0
, nightly-2022-01-01
.
Important: the default is to match the @rev as described above.
- When passing an explicit toolchain
as an input instead of @rev, you'll want to use "dtolnay/rust-toolchain@master" as the revision of the action.
+ When passing an explicit toolchain
as an input instead of @rev, you'll want to use "IronCoreLabs/rust-toolchain@master" as the revision of the action.
Name | +Description | +
---|---|
toolchain |
+ + The parsed toolchain that was installed by this action. + | +
cachekey |
+ A short hash of the rustc version, appropriate for use as a cache key. ex "20220627a831" | +