X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=.github%2Fworkflows%2Frustc.yml;h=5faa8f0540451b848506fadd139fc6333429b230;hb=397fafa16090dc2530449027a71143480d5cc336;hp=2c7de86f9b9071abe77e7cf6e9294db06088abc9;hpb=e14e5c2af1a028a2ad23508ee3d6d5ffda0ebdf0;p=rust.git diff --git a/.github/workflows/rustc.yml b/.github/workflows/rustc.yml index 2c7de86f9b9..5faa8f05404 100644 --- a/.github/workflows/rustc.yml +++ b/.github/workflows/rustc.yml @@ -10,25 +10,21 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Cache cargo registry and index - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - key: ${{ runner.os }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo target dir uses: actions/cache@v3 with: path: build/cg_clif key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }} - - name: Prepare dependencies + - name: Use sparse cargo registry run: | - git config --global user.email "user@example.com" - git config --global user.name "User" - ./y.rs prepare + cat >> ~/.cargo/config.toml <> ~/.cargo/config.toml <