fix: 去除多余的配置项

This commit is contained in:
chenwj113 2024-08-21 16:57:56 +08:00
parent bd0dd7428a
commit e3fcef5516
1 changed files with 0 additions and 68 deletions

View File

@ -125,74 +125,6 @@ runs:
echo "git-fetch-with-cli = true" >> ~/.cargo/config echo "git-fetch-with-cli = true" >> ~/.cargo/config
fi fi
- name: Cache Rust toolchain
uses: actions/cache@v3
with:
path: |
$HOME/.cargo/registry
$HOME/.cargo/git
$HOME/.cargo/registry/cache
$HOME/.cargo/registry/index
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-
fi
- name: Cache Rust toolchain
uses: actions/cache@v3
with:
path: |
$HOME/.cargo/registry
$HOME/.cargo/git
$HOME/.cargo/registry/cache
$HOME/.cargo/registry/index
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock')
}}
fi
- name: Cache Rust toolchain
uses: actions/cache@v3
with:
path: |
$HOME/.cargo/registry
$HOME/.cargo/git
$HOME/.cargo/registry/cache
$HOME/.cargo/registry/index
fi
- name: Install Rust toolchain
if: runner.os != 'Windows'
shell: bash
run: |
if ! command -v rustup &> /dev/null ; then
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://rsproxy.cn/rustup-init.sh" | sh -s -- --default-toolchain none -y
fi
- name: Install Rust toolchain
if: runner.os != 'Windows'
shell: bash
run: |
if ! command -v rustup &> /dev/null ; then
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://rsproxy.cn/rustup-init.sh" | sh -s -- --default-toolchain none -y
fi
- name: Install Rust toolchain
if: runner.os == 'Windows'
shell: bash
run: |
if ! command -v rustup &> /dev/null ; then
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://rsproxy.cn/rustup-init.exe" -o rustup-init.exe
powershell -Command .\rustup-init.exe -y
fi
- name: Cache Rust toolchain
uses: actions/cache@v3
env:
cache_key: ${{ runner.os }}-rustup-${{ runner.arch }}-${{ runner.temp }}-${{ hashFiles('**/rust-toolchain', '**/rust-toolchain.toml') }}
with:
path: ${{ runner.temp }}/cargo-home
- name: Install Rust Problem Matcher - name: Install Rust Problem Matcher
if: inputs.matcher == 'true' if: inputs.matcher == 'true'
shell: bash shell: bash