Skip to content

Commit b31db73

Browse files
committed
feat: add sccache webdav backend
1 parent 64b509f commit b31db73

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/rust.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ jobs:
66
name: Check
77
runs-on: ubuntu-latest
88
steps:
9+
- name: Run sccache-cache
10+
uses: mozilla-actions/sccache-action@v0.0.9
11+
912
- name: Checkout sources
1013
uses: actions/checkout@v2
1114

@@ -18,6 +21,11 @@ jobs:
1821

1922
- name: Run cargo check
2023
uses: actions-rs/cargo@v1
24+
env:
25+
SCCACHE_WEBDAV_ENDPOINT: ${{ secrets.WEB_DAV_URL }}
26+
SCCACHE_WEBDAV_USER: "admin"
27+
SCCACHE_WEBDAV_PASSWORD: ${{ secrets.WEB_DAV_PASSWORD }}
28+
RUSTC_WRAPPER: "sccache"
2129
with:
2230
command: check
2331
args: --all-features
@@ -26,6 +34,9 @@ jobs:
2634
name: Test Suite
2735
runs-on: ubuntu-latest
2836
steps:
37+
- name: Run sccache-cache
38+
uses: mozilla-actions/sccache-action@v0.0.9
39+
2940
- name: Checkout sources
3041
uses: actions/checkout@v2
3142

@@ -38,6 +49,11 @@ jobs:
3849

3950
- name: Run cargo test
4051
uses: actions-rs/cargo@v1
52+
env:
53+
SCCACHE_WEBDAV_ENDPOINT: ${{ secrets.WEB_DAV_URL }}
54+
SCCACHE_WEBDAV_USER: "admin"
55+
SCCACHE_WEBDAV_PASSWORD: ${{ secrets.WEB_DAV_PASSWORD }}
56+
RUSTC_WRAPPER: "sccache"
4157
with:
4258
command: test
4359
arg: --all-features
@@ -46,6 +62,9 @@ jobs:
4662
name: Lints
4763
runs-on: ubuntu-latest
4864
steps:
65+
- name: Run sccache-cache
66+
uses: mozilla-actions/sccache-action@v0.0.9
67+
4968
- name: Checkout sources
5069
uses: actions/checkout@v2
5170

@@ -65,6 +84,11 @@ jobs:
6584

6685
- name: Run cargo clippy
6786
uses: actions-rs/clippy-check@v1
87+
env:
88+
SCCACHE_WEBDAV_ENDPOINT: ${{ secrets.WEB_DAV_URL }}
89+
SCCACHE_WEBDAV_USER: "admin"
90+
SCCACHE_WEBDAV_PASSWORD: ${{ secrets.WEB_DAV_PASSWORD }}
91+
RUSTC_WRAPPER: "sccache"
6892
with:
6993
token: ${{ secrets.GITHUB_TOKEN }}
7094
args: --all-features

0 commit comments

Comments
 (0)