From 062a4273fedf9854a934c036c9a958306a688a4d Mon Sep 17 00:00:00 2001 From: Samuel Burnham <45365069+samuelburnham@users.noreply.github.com> Date: Wed, 1 Nov 2023 07:45:55 -0400 Subject: [PATCH] Fix env var loading (#823) --- .github/workflows/bench-pr-comment.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bench-pr-comment.yml b/.github/workflows/bench-pr-comment.yml index d48bc7a2f3..8399e0fdf9 100644 --- a/.github/workflows/bench-pr-comment.yml +++ b/.github/workflows/bench-pr-comment.yml @@ -73,11 +73,12 @@ jobs: - uses: actions-rs/toolchain@v1 - uses: Swatinem/rust-cache@v2 - name: Load env vars - uses: xom9ikk/dotenv@v2 - with: - path: bench.env - # Strict load => panic if .env file not found - load-mode: strict + run: | + set -a + source bench.env + set +a + env | grep -E 'LURK|EC_GPU|CUDA' + working-directory: ${{ github.workspace }}/benches # Run the comparative benchmark and comment output on the PR - uses: boa-dev/criterion-compare-action@v3 with: