This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix nix github actions - Use `nix develop` - Check if pre-commit hooks work. - Use `rust-cache` - Remove unused git config * Remove non-existant flake input override
- Loading branch information
Showing
2 changed files
with
7 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,34 +14,19 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
steps: | ||
- name: Configure Git | ||
run: | | ||
git config --global url."https://ancient123:${{ secrets.ORG_GITHUB_PAT }}@github.com/".insteadOf git://github.com/ | ||
git config --global url."https://ancient123:${{ secrets.ORG_GITHUB_PAT }}@github.com/".insteadOf ssh://[email protected]/ | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Nix | ||
uses: cachix/install-nix-action@v24 | ||
|
||
# - uses: cachix/cachix-action@v12 | ||
# with: | ||
# name: espresso-systems-private | ||
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Cache cargo | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.cargo-nix/registry/index | ||
~/.cargo-nix/registry/cache | ||
~/.cargo-nix/git | ||
target | ||
key: espresso-nix-v2-${{ hashFiles('Cargo.lock') }} | ||
- name: Nix environment loads | ||
run: nix develop -c echo Success | ||
|
||
- name: "Sanity Check: nix environment loads" | ||
run: nix-shell --run "echo Success" | ||
- name: Nix environment builds all targets | ||
run: nix develop -c cargo build --all-targets --all-features --release --workspace | ||
|
||
- name: "Sanity Check: nix environment builds all targets" | ||
run: nix-shell --run "cargo build --all-targets --all-features --release --workspace" | ||
- name: Precommit hooks work | ||
run: nix develop -c pre-commit run --all-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters