File tree 3 files changed +12
-9
lines changed 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 41
41
echo "SODIUM_USE_PKG_CONFIG=1" >> $GITHUB_ENV
42
42
echo "ROCKSDB_LIB_DIR=/usr/lib" >> $GITHUB_ENV
43
43
fi
44
- echo "SCCACHE_ENDPOINT=https://a4aa0fffebef8bc497f64875c40ee6fb.r2.cloudflarestorage.com" >> $GITHUB_ENV
45
- echo "SCCACHE_BUCKET=cvx-actions-cache" >> $GITHUB_ENV
46
- echo "SCCACHE_REGION=auto" >> $GITHUB_ENV
47
- echo "AWS_ACCESS_KEY_ID=${{ inputs.r2-access-key }}" >> $GITHUB_ENV
48
- echo "AWS_SECRET_ACCESS_KEY=${{ inputs.r2-secret-key }}" >> $GITHUB_ENV
49
44
echo "CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse" >> $GITHUB_ENV
50
45
echo "CARGO_NET_GIT_FETCH_WITH_CLI=true" >> $GITHUB_ENV
51
46
54
49
with :
55
50
version : " v0.8.0"
56
51
52
+ - name : Start sccache
53
+ shell : bash
54
+ env :
55
+ SCCACHE_ENDPOINT : https://a4aa0fffebef8bc497f64875c40ee6fb.r2.cloudflarestorage.com
56
+ SCCACHE_BUCKET : cvx-actions-cache
57
+ SCCACHE_REGION : auto
58
+ AWS_ACCESS_KEY_ID : ${{ inputs.r2-access-key }}
59
+ AWS_SECRET_ACCESS_KEY : ${{ inputs.r2-secret-key }}
60
+ run : |
61
+ # Try to start sccache up to 3 times. Sometimes it times out for unknown reasons.
62
+ (r=3;while ! sccache --start-server ; do ((--r))||exit;sleep 5;done)
63
+
57
64
# n.b. this action inspects the environment and variables starting with
58
65
# `CARGO_` are used as part of the cache key.
59
66
# If users of this composite action add additional `CARGO_*` variables after
Original file line number Diff line number Diff line change 35
35
uses : runs-on/cache@v4
36
36
env :
37
37
AWS_REGION : ${{ vars.AWS_REGION }}
38
- AWS_ACCESS_KEY_ID : " "
39
- AWS_SECRET_ACCESS_KEY : " "
40
38
RUNS_ON_S3_BUCKET_CACHE : ${{ vars.RUNS_ON_S3_BUCKET_CACHE }}
41
39
with :
42
40
path : |
Original file line number Diff line number Diff line change 40
40
uses : runs-on/cache@v4
41
41
env :
42
42
AWS_REGION : ${{ vars.AWS_REGION }}
43
- AWS_ACCESS_KEY_ID : " "
44
- AWS_SECRET_ACCESS_KEY : " "
45
43
RUNS_ON_S3_BUCKET_CACHE : ${{ vars.RUNS_ON_S3_BUCKET_CACHE }}
46
44
with :
47
45
path : |
You can’t perform that action at this time.
0 commit comments