From 9d6a0e33d90087768754a9422633e7f189154b95 Mon Sep 17 00:00:00 2001 From: rsdy
Date: Fri, 22 Sep 2023 15:20:21 +0200 Subject: [PATCH] Use direnv-action --- .github/workflows/server-test.yml | 13 +++++++++---- .github/workflows/tauri-test.yml | 13 +++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/server-test.yml b/.github/workflows/server-test.yml index 57498087f0..34a2f2aabb 100644 --- a/.github/workflows/server-test.yml +++ b/.github/workflows/server-test.yml @@ -37,19 +37,24 @@ jobs: - name: Git LFS Pull run: git lfs install && git lfs pull + - name: Load PATH changes + run: direnv allow && direnv exec . sh -c 'echo $PATH' > "$GITHUB_PATH" + - name: Load other environment changes + run: direnv export gha >> "$GITHUB_ENV" + - uses: Swatinem/rust-cache@v2 - name: Rustfmt - run: nix develop -c bash -c 'cargo --locked fmt -p bleep -- --check' + run: cargo --locked fmt -p bleep -- --check - name: Clippy - run: nix develop -c bash -c 'cargo --locked clippy -p bleep --features=ee' + run: cargo --locked clippy -p bleep --features=ee - name: Tests - run: nix develop -c bash -c 'cargo --locked test -p bleep --release' + run: cargo --locked test -p bleep --release - name: Sccache stats - run: nix develop -c bash -c 'sccache --show-stats' + run: sccache --show-stats # benchmark: # runs-on: [self-hosted, benchmark] diff --git a/.github/workflows/tauri-test.yml b/.github/workflows/tauri-test.yml index 0fba42361e..4f722b39ce 100644 --- a/.github/workflows/tauri-test.yml +++ b/.github/workflows/tauri-test.yml @@ -38,16 +38,21 @@ jobs: - name: Git LFS Pull run: git lfs install && git lfs pull + - name: Load PATH changes + run: direnv allow && direnv exec . sh -c 'echo $PATH' > "$GITHUB_PATH" + - name: Load other environment changes + run: direnv export gha >> "$GITHUB_ENV" + - uses: Swatinem/rust-cache@v2 - name: Rustfmt - run: nix develop -c bash -c 'cargo --locked fmt -p bloop -- --check' + run: cargo --locked fmt -p bloop -- --check - name: Clippy - run: nix develop -c bash -c 'cargo --locked clippy -p bloop' + run: cargo --locked clippy -p bloop - name: Tests - run: nix develop -c bash -c 'cargo --locked test -p bloop --release' + run: cargo --locked test -p bloop --release - name: Sccache stats - run: nix develop -c bash -c 'sccache --show-stats' + run: sccache --show-stats