From 2932d618ac57f8dc8b2f7ee9f1a55dbc6a5b24e3 Mon Sep 17 00:00:00 2001 From: Samuel Burnham <45365069+samuelburnham@users.noreply.github.com> Date: Tue, 31 Oct 2023 22:37:46 -0400 Subject: [PATCH] Fix env var loading --- .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: