Skip to content

Commit 2635c77

Browse files
committed
Fix CI
1 parent 95b8aa4 commit 2635c77

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,21 @@ jobs:
165165
cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-${{ hashFiles('**/Cargo.*') }}
166166
cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-
167167
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
170183
- name: Build `oauth-credentials`
171184
uses: actions-rs/cargo@v1
172185
with:

0 commit comments

Comments
 (0)