From b14de2b704a5241da62b3f4e4e9b6aa96087b50f Mon Sep 17 00:00:00 2001 From: Xu Zhao Date: Wed, 26 Jun 2024 10:43:25 -0400 Subject: [PATCH] Bugfix --- .github/workflows/_linux-benchmark-cuda.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_linux-benchmark-cuda.yml b/.github/workflows/_linux-benchmark-cuda.yml index 934f71f9e..3f6c1531b 100644 --- a/.github/workflows/_linux-benchmark-cuda.yml +++ b/.github/workflows/_linux-benchmark-cuda.yml @@ -57,11 +57,14 @@ jobs: - name: Remove result if it already exists if: always() run: | - . "${SETUP_SCRIPT}" # remove old results if exists if [ -d benchmark-output ]; then rm -Rf benchmark-output; fi pushd benchmark if [ -d .userbenchmark ]; then rm -Rf .userbenchmark; fi + - name: Clone and setup conda env + run: | + CONDA_ENV=${BASE_CONDA_ENV} . "${SETUP_SCRIPT}" + conda create --name "${CONDA_ENV}" --clone "${BASE_CONDA_ENV}" - name: Install benchmark run: | . "${SETUP_SCRIPT}" @@ -75,12 +78,12 @@ jobs: if [ -d ../benchmark-output ]; then rm -Rf benchmark-output; fi if [ -d .userbenchmark ]; then rm -Rf .userbenchmark; fi python run_benchmark.py ${{ inputs.userbenchmark }} ${{ inputs.userbenchmark-run-args }} - - name: Copy the benchmark logs to benchmark-output + - name: Copy benchmark logs if: always() run: | pushd benchmark cp -r ./.userbenchmark/${{ inputs.userbenchmark }} ../benchmark-output - - name: Upload result to GH Actions Artifact + - name: Upload benchmark result to GH Actions Artifact uses: actions/upload-artifact@v3 if: always() with: