Env in a step.
This commit is contained in:
parent
86261555ce
commit
470732761a
|
@ -22,11 +22,6 @@ jobs:
|
||||||
runner: [ubuntu-latest, intel-pvc-tgi]
|
runner: [ubuntu-latest, intel-pvc-tgi]
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
|
|
||||||
env:
|
|
||||||
SCCACHE_GHA_ENABLED: "on"
|
|
||||||
RUSTC_WRAPPER: "${{ contains(matrix.runner, 'intel') && '' || '/usr/local/bin/sccache' }}"
|
|
||||||
SCCACHE: 0.3.3
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
|
@ -43,6 +38,12 @@ jobs:
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
- name: Install Protoc
|
- name: Install Protoc
|
||||||
uses: arduino/setup-protoc@v1
|
uses: arduino/setup-protoc@v1
|
||||||
|
- name: Set Rust caching env vars only on non-release runs
|
||||||
|
if: matrix.runner != 'intel-pvc-tgi'
|
||||||
|
run: |
|
||||||
|
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
|
||||||
|
echo "RUSTC_WRAPPER=/usr/local/bin/sccache" >> $GITHUB_ENV
|
||||||
|
echo "SCCACHE=0.3.3" >> $GITHUB_ENV
|
||||||
- name: Clean unused files
|
- name: Clean unused files
|
||||||
if: matrix.runner != 'intel-pvc-tgi'
|
if: matrix.runner != 'intel-pvc-tgi'
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue