File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,21 @@ jobs:
165
165
cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-${{ hashFiles('**/Cargo.*') }}
166
166
cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-
167
167
cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-
168
- # Remove the virtual manifest because Rust 1.13.0 run fails when built as a workspace member.
169
- - run : rm Cargo.toml
168
+ - uses : actions/checkout@v2
169
+ with :
170
+ repository : rust-lang/crates.io-index
171
+ ref : 46a429eac9f70fd7281922780d7dd42e2fb7ab77
172
+ path : crates.io-index
173
+ - name : Workaround compatibility issues of Cargo
174
+ run : |
175
+ # Remove the virtual manifest because Rust 1.13.0 run fails when built as a workspace member.
176
+ rm Cargo.toml
177
+ # Reference: <https://github.com/mcgoo/vcpkg-rs/blob/f75707b/.github/workflows/rust-1.12.yml>
178
+ mkdir -p oauth-credentials/.cargo
179
+ cat <<EOF >> oauth-credentials/.cargo/config
180
+ [source.crates-io]
181
+ registry = "file://$GITHUB_WORKSPACE/crates.io-index"
182
+ EOF
170
183
- name : Build `oauth-credentials`
171
184
uses : actions-rs/cargo@v1
172
185
with :
You can’t perform that action at this time.
0 commit comments