- # We need to disable the existing toolchain to avoid updating rust-docs
- # which takes a long time. The fastest way to do this is to rename the
- # existing folder, as deleting it takes about as much time as not doing
- # anything and just updating rust-docs.
- - name: Rename existing rust toolchain (Windows)
- if: matrix.os == 'windows-latest'
- run: Rename-Item C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc.old
-
- # Work around https://github.com/actions/cache/issues/403 by using GNU tar
- # instead of BSD tar.
- - name: Install GNU tar
- if: matrix.os == 'macos-latest'
- run: |
- brew install gnu-tar
- echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV
-