Env in a step.

This commit is contained in:
Nicolas Patry 2024-06-03 18:15:53 +02:00
parent 86261555ce
commit 470732761a
1 changed files with 6 additions and 5 deletions

View File

@ -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: |