[ci] Add remote repo copy step; put REMOTE_WORK_DIR in env
This commit is contained in:
20
.github/workflows/chipyard-run-tests-gpu.yml
vendored
20
.github/workflows/chipyard-run-tests-gpu.yml
vendored
@@ -12,6 +12,7 @@ defaults:
|
|||||||
env:
|
env:
|
||||||
tools-cache-version: v17
|
tools-cache-version: v17
|
||||||
CI_DIR: ${{ secrets.BUILDDIR }}
|
CI_DIR: ${{ secrets.BUILDDIR }}
|
||||||
|
REMOTE_WORK_DIR: ${{ secrets.BUILDDIR }}/cy-ci-shared/cy-${{ github.sha }}
|
||||||
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
|
JVM_OPTS: -Xmx3200m # Customize the JVM maximum heap limit
|
||||||
conda-env-name-no-time: cy-${{ github.run_id }}
|
conda-env-name-no-time: cy-${{ github.run_id }}
|
||||||
workflow-timestamp: ${{ github.event.pull_request.updated_at }}
|
workflow-timestamp: ${{ github.event.pull_request.updated_at }}
|
||||||
@@ -88,12 +89,29 @@ jobs:
|
|||||||
- name: Create conda env
|
- name: Create conda env
|
||||||
uses: ./.github/actions/create-conda-env
|
uses: ./.github/actions/create-conda-env
|
||||||
|
|
||||||
|
setup-repo:
|
||||||
|
name: setup-repo
|
||||||
|
needs: create-conda-env
|
||||||
|
if: needs.change-filters.outputs.needs-rtl == 'true'
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- name: Delete old checkout
|
||||||
|
run: |
|
||||||
|
ls -alh .
|
||||||
|
rm -rf ${{ github.workspace }}/* || true
|
||||||
|
rm -rf ${{ github.workspace }}/.* || true
|
||||||
|
ls -alh .
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Setup repo copy
|
||||||
|
run: |
|
||||||
|
git clone $GITHUB_WORKSPACE ${{ env.REMOTE_WORK_DIR }}
|
||||||
|
|
||||||
# Sentinel job to simplify how we specify which that basic setup is complete
|
# Sentinel job to simplify how we specify which that basic setup is complete
|
||||||
#
|
#
|
||||||
# When adding new prep jobs, please add them to `needs` below
|
# When adding new prep jobs, please add them to `needs` below
|
||||||
setup-complete:
|
setup-complete:
|
||||||
name: setup-complete
|
name: setup-complete
|
||||||
needs: [create-conda-env]
|
needs: setup-repo
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Set up complete
|
- name: Set up complete
|
||||||
|
|||||||
Reference in New Issue
Block a user