Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/_ledger_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ jobs:
restore-keys: |
${{ runner.os }}-rust-${{ runner.arch }}-
${{ runner.os }}-rust-
- name: Restore tracked cargo config (cache may carry a pre-migration copy)
if: ${{ inputs.has-rust }}
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
if git -C "$GITHUB_WORKSPACE" ls-files --error-unmatch app/rust/.cargo/config.toml >/dev/null 2>&1; then
git -C "$GITHUB_WORKSPACE" checkout -- app/rust/.cargo/config.toml
echo "Restored app/rust/.cargo/config.toml from checkout (a stale Rust cache can overwrite it with a pre-migration copy)."
fi
- name: Install rust-src component
if: ${{ inputs.has-rust }}
run: rustup component add rust-src --toolchain ${{ inputs.rust-version }}-x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -268,6 +276,14 @@ jobs:
restore-keys: |
${{ runner.os }}-rust-${{ runner.arch }}-
${{ runner.os }}-rust-
- name: Restore tracked cargo config (cache may carry a pre-migration copy)
if: ${{ inputs.has-rust }}
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
if git -C "$GITHUB_WORKSPACE" ls-files --error-unmatch app/rust/.cargo/config.toml >/dev/null 2>&1; then
git -C "$GITHUB_WORKSPACE" checkout -- app/rust/.cargo/config.toml
echo "Restored app/rust/.cargo/config.toml from checkout (a stale Rust cache can overwrite it with a pre-migration copy)."
fi
- name: Install rust-src component
if: ${{ inputs.has-rust }}
run: rustup component add rust-src --toolchain ${{ inputs.rust-version }}-x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -342,6 +358,14 @@ jobs:
restore-keys: |
${{ runner.os }}-rust-${{ runner.arch }}-
${{ runner.os }}-rust-
- name: Restore tracked cargo config (cache may carry a pre-migration copy)
if: ${{ inputs.has-rust }}
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
if git -C "$GITHUB_WORKSPACE" ls-files --error-unmatch app/rust/.cargo/config.toml >/dev/null 2>&1; then
git -C "$GITHUB_WORKSPACE" checkout -- app/rust/.cargo/config.toml
echo "Restored app/rust/.cargo/config.toml from checkout (a stale Rust cache can overwrite it with a pre-migration copy)."
fi
- name: Install rust-src component
if: ${{ inputs.has-rust }}
run: rustup component add rust-src --toolchain ${{ inputs.rust-version }}-x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -416,6 +440,14 @@ jobs:
restore-keys: |
${{ runner.os }}-rust-${{ runner.arch }}-
${{ runner.os }}-rust-
- name: Restore tracked cargo config (cache may carry a pre-migration copy)
if: ${{ inputs.has-rust }}
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
if git -C "$GITHUB_WORKSPACE" ls-files --error-unmatch app/rust/.cargo/config.toml >/dev/null 2>&1; then
git -C "$GITHUB_WORKSPACE" checkout -- app/rust/.cargo/config.toml
echo "Restored app/rust/.cargo/config.toml from checkout (a stale Rust cache can overwrite it with a pre-migration copy)."
fi
- name: Install rust-src component
if: ${{ inputs.has-rust }}
run: rustup component add rust-src --toolchain ${{ inputs.rust-version }}-x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -489,6 +521,14 @@ jobs:
restore-keys: |
${{ runner.os }}-rust-${{ runner.arch }}-
${{ runner.os }}-rust-
- name: Restore tracked cargo config (cache may carry a pre-migration copy)
if: ${{ inputs.has-rust }}
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
if git -C "$GITHUB_WORKSPACE" ls-files --error-unmatch app/rust/.cargo/config.toml >/dev/null 2>&1; then
git -C "$GITHUB_WORKSPACE" checkout -- app/rust/.cargo/config.toml
echo "Restored app/rust/.cargo/config.toml from checkout (a stale Rust cache can overwrite it with a pre-migration copy)."
fi
- name: Install rust-src component
if: ${{ inputs.has-rust }}
run: rustup component add rust-src --toolchain ${{ inputs.rust-version }}-x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -562,6 +602,14 @@ jobs:
restore-keys: |
${{ runner.os }}-rust-${{ runner.arch }}-
${{ runner.os }}-rust-
- name: Restore tracked cargo config (cache may carry a pre-migration copy)
if: ${{ inputs.has-rust }}
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
if git -C "$GITHUB_WORKSPACE" ls-files --error-unmatch app/rust/.cargo/config.toml >/dev/null 2>&1; then
git -C "$GITHUB_WORKSPACE" checkout -- app/rust/.cargo/config.toml
echo "Restored app/rust/.cargo/config.toml from checkout (a stale Rust cache can overwrite it with a pre-migration copy)."
fi
- name: Install rust-src component
if: ${{ inputs.has-rust }}
run: rustup component add rust-src --toolchain ${{ inputs.rust-version }}-x86_64-unknown-linux-gnu
Expand Down