diff --git a/action.yml b/action.yml index 725d826..8ef70b4 100644 --- a/action.yml +++ b/action.yml @@ -125,74 +125,6 @@ runs: echo "git-fetch-with-cli = true" >> ~/.cargo/config 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 if: inputs.matcher == 'true' shell: bash