Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Use direnv-action
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdy committed Sep 22, 2023
1 parent 2f87ec6 commit 9d6a0e3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/server-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/tauri-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9d6a0e3

Please sign in to comment.