RELENV_DATA is now a global workflow environment variable

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-01-15 12:32:13 +00:00 committed by Pedro Algarvio
parent b018eae8b4
commit da013a6425
2 changed files with 2 additions and 3 deletions

View file

@ -24,14 +24,12 @@ runs:
- name: Set environment variables
shell: bash
run: |
python3 -c "import os; os.makedirs('.relenv', exist_ok=True)"
echo RELENV_DATA="$(pwd)/.relenv" >> $GITHUB_ENV
echo RELENV_VERSION="$(python3 -m pip show relenv | grep Version | cut -d ' ' -f2)" >> $GITHUB_ENV
- name: Cache Relenv Data Directory
uses: actions/cache@v3
with:
path: ${{ env.RELENV_DATA }}
path: ${{ github.workspace }}/.relenv
key: ${{ env.CACHE_SEED }}|relenv|${{ env.RELENV_VERSION }}|${{ inputs.platform }}|${{ inputs.arch }}
- name: Fetch Toolchain

View file

@ -27,6 +27,7 @@ on:
env:
COLUMNS: 160
CACHE_SEED: SEED-2 # Bump the number to invalidate all caches
RELENV_DATA: "${{ github.workspace }}/.relenv"
permissions:
contents: read # for dorny/paths-filter to fetch a list of changed files