Remove sscache (#138)
This commit is contained in:
parent
1225ff2c5a
commit
51d824fbdc
38
.github/workflows/build-test.yml
vendored
38
.github/workflows/build-test.yml
vendored
@ -32,38 +32,6 @@ jobs:
|
|||||||
toolchain: ${{ matrix.toolchain }}
|
toolchain: ${{ matrix.toolchain }}
|
||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
- name: Cache cargo registry
|
|
||||||
uses: actions/cache@v1.1.2
|
|
||||||
with:
|
|
||||||
path: ~/.cargo/registry
|
|
||||||
key: ${{ runner.os }}-cargo-registry-build-tests-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
- name: Cache cargo index
|
|
||||||
uses: actions/cache@v1.1.2
|
|
||||||
with:
|
|
||||||
path: ~/.cargo/git
|
|
||||||
key: ${{ runner.os }}-cargo-git-build-tests-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
- name: Cache cargo build
|
|
||||||
uses: actions/cache@v1.1.2
|
|
||||||
with:
|
|
||||||
path: target
|
|
||||||
key: ${{ runner.os }}-cargo-build-target-build-tests-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
- name: Cache sccache linux
|
|
||||||
if: matrix.platform == 'ubuntu-16.04'
|
|
||||||
uses: actions/cache@v1.1.2
|
|
||||||
with:
|
|
||||||
path: "/home/runner/.cache/sccache"
|
|
||||||
key: ${{ runner.os }}-sccache-build-tests-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
- name: Cache sccache MacOS
|
|
||||||
if: matrix.platform == 'macos-latest'
|
|
||||||
uses: actions/cache@v1.1.2
|
|
||||||
with:
|
|
||||||
path: "/Users/runner/Library/Caches/Mozilla.sccache"
|
|
||||||
key: ${{ runner.os }}-sccache-build-tests-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
- name: Install sccache for ${{ matrix.platform }}
|
|
||||||
shell: pwsh
|
|
||||||
run: pwsh scripts/actions/install-sccache.ps1 ${{ runner.os}}
|
|
||||||
- name: Sccache statistics
|
|
||||||
run: sccache --show-stats
|
|
||||||
- name: Build tests
|
- name: Build tests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
@ -75,9 +43,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --locked --all --release --features "json-tests" --verbose
|
args: --locked --all --release --features "json-tests" --verbose
|
||||||
- name: Stop sccache
|
|
||||||
if: always()
|
|
||||||
run: sccache --stop-server
|
|
||||||
- name: Prepare build directory for cache
|
|
||||||
shell: bash
|
|
||||||
run: bash scripts/actions/clean-target.sh
|
|
||||||
|
Loading…
Reference in New Issue
Block a user