diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 152a3528b..69454618d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: - uses: DeterminateSystems/flake-checker-action@main - name: Install aquascope and mdbook-aquascope - run: nix develop --command ci-install + run: nix develop --command ci-build-release - name: Package artifact run: tar -czf aquascope-x86_64-unknown-linux-gnu.tar.gz mdbook-aquascope cargo-aquascope aquascope-driver diff --git a/flake.nix b/flake.nix index 3c2aad8a6..bc378f52c 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,10 @@ cargo install --path crates/mdbook-aquascope --debug --locked ''; + ci-build-release = pkgs.writeScriptBin "ci-build-release" '' + ci-install && cargo build --release --locked + ''; + ci-publish-crates = pkgs.writeScriptBin "ci-publish-crates" '' cargo build cargo ws publish --from-git --allow-dirty --yes --token "$1" @@ -67,6 +71,7 @@ ci-check ci-install ci-publish-crates + ci-build-release ci-publish-full-pages llvmPackages_latest.llvm @@ -76,6 +81,7 @@ cargo-insta cargo-make cargo-watch + cargo-workspaces rust-analyzer mdbook