X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=.github%2Fworkflows%2Frustc.yml;h=5faa8f0540451b848506fadd139fc6333429b230;hb=397fafa16090dc2530449027a71143480d5cc336;hp=1c08e5ece33d27e67fc01b5012f1ac237f2fc51c;hpb=b33a3ec6976680fa2460e8ef219ff57d6f2ad41e;p=rust.git diff --git a/.github/workflows/rustc.yml b/.github/workflows/rustc.yml index 1c08e5ece33..5faa8f05404 100644 --- a/.github/workflows/rustc.yml +++ b/.github/workflows/rustc.yml @@ -8,75 +8,47 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Cache cargo installed crates - uses: actions/cache@v2 - with: - path: ~/.cargo/bin - key: ${{ runner.os }}-cargo-installed-crates - - - name: Cache cargo registry and index - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - key: ${{ runner.os }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }} + - uses: actions/checkout@v3 - name: Cache cargo target dir - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: target + 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 <