Skip to content

Commit

Permalink
Fix post merge CI by using just instead of xtask
Browse files Browse the repository at this point in the history
This commit fixes post merge CI by using just instead of xtask. In
addition, references to xtask have either been replaced or removed
throughout the repository. The nix flake has been updated to contain
all binaries needed by the just targets as well.

Signed-off-by: Nick Gerace <[email protected]>
  • Loading branch information
nickgerace committed Dec 10, 2024
1 parent 8a75784 commit ca3f58e
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 24 deletions.
3 changes: 0 additions & 3 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[build]
rustdocflags = "--document-private-items"

[alias]
xtask = "run -q --manifest-path ./bin/xtask/Cargo.toml --"
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ jobs:
with:
toolchain: stable
components: rustfmt, clippy
- run: cargo xtask ci
- uses: taiki-e/install-action@just
- run: just ci
10 changes: 0 additions & 10 deletions docs/DEVELOPING.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Steps should be executed in sequential order.
- [ ] Verify that everything looks/works as expected:

```shell
cargo xtask ci
just ci
```

- [ ] Create and _do not merge_ a commit with the following message: `Update libgfold to <tag>`
Expand Down Expand Up @@ -56,7 +56,7 @@ Steps should be executed in sequential order.
- [ ] Verify that everything looks/works as expected:

```shell
cargo xtask ci
just ci
```

- [ ] Create and _do not merge_ a commit with the following message: `Update gfold to <tag>`
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
devShells.default = mkShell {
packages = [
alejandra
bash
cargo-audit
cargo-bloat
cargo-udeps
coreutils
hyperfine
just
rust-bin-with-overrides
];
};
Expand Down
8 changes: 6 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ bench directory=('../'): build-release

size: build-release
#!/usr/bin/env bash
gdu -b target/release/gfold
checker=gdu
if ! command -v $checker; then
checker=du
fi
$checker -b target/release/gfold
binary=$(which gfold)
if [[ -n "$binary" ]]; then
gdu -b "$(realpath "$binary")"
$checker -b "$(realpath "$binary")"
fi

0 comments on commit ca3f58e

Please sign in to comment.