mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
scope sccache to CPU model
This commit is contained in:
parent
bf38a1a31c
commit
4da55fdecc
1 changed files with 11 additions and 0 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -4,6 +4,11 @@ name: CI
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUSTC_WRAPPER: /usr/local/bin/sccache
|
RUSTC_WRAPPER: /usr/local/bin/sccache
|
||||||
|
SCCACHE_BUCKET: ${{ secrets.SCCACHE_BUCKET }}
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
SCCACHE_S3_USE_SSL: ${{ secrets.SCCACHE_S3_USE_SSL }}
|
||||||
|
SCCACHE_REGION: ${{ secrets.SCCACHE_REGION }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
@ -19,6 +24,12 @@ jobs:
|
||||||
- name: Install CI Libraries
|
- name: Install CI Libraries
|
||||||
run: sudo ./ci/install-ci-libraries.sh 10
|
run: sudo ./ci/install-ci-libraries.sh 10
|
||||||
|
|
||||||
|
- name: scope sccache to CPU model
|
||||||
|
run: export SCCACHE_S3_KEY_PREFIX=`sudo cat /proc/cpuinfo | grep name | uniq | awk {'print $6'}`
|
||||||
|
|
||||||
|
- name: print SCCACHE_S3_KEY_PREFIX
|
||||||
|
run: echo $SCCACHE_S3_KEY_PREFIX
|
||||||
|
|
||||||
- name: sccache version
|
- name: sccache version
|
||||||
run: /usr/local/bin/sccache -V
|
run: /usr/local/bin/sccache -V
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue