From 4700c746a8bc4ae5d21193705dfdb812449c48cb Mon Sep 17 00:00:00 2001 From: James Sturtevant Date: Mon, 6 Apr 2026 20:14:28 -0700 Subject: [PATCH 1/2] Fix failed publishing Signed-off-by: James Sturtevant --- .github/workflows/CreateRelease.yml | 4 ---- .github/workflows/dep_cargo_publish.yml | 22 ++++++++++++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index 8fcf8e1c..4e521333 100644 --- a/.github/workflows/CreateRelease.yml +++ b/.github/workflows/CreateRelease.yml @@ -39,10 +39,6 @@ jobs: uses: hyperlight-dev/ci-setup-workflow@v1.8.0 with: rust-toolchain: "1.89" - - name: Package hyperlight-wasm crate - if: ${{ contains(github.ref, 'refs/heads/release/') }} - run: cargo package -p hyperlight-wasm - shell: bash - name: Set HYPERLIGHTWASM_VERSION run: | git fetch --tags diff --git a/.github/workflows/dep_cargo_publish.yml b/.github/workflows/dep_cargo_publish.yml index cb47a616..7bccd229 100644 --- a/.github/workflows/dep_cargo_publish.yml +++ b/.github/workflows/dep_cargo_publish.yml @@ -62,9 +62,23 @@ jobs: # allow-dirty is needed in the publish below because we are using the --no-git-commit option above to cover the case # where no changes are made by cargo ws version because the version is already correct - # Run cargo package to perform publishing validation if this workflow - # is triggered by a pull-request + # Run cargo publish --dry-run to perform publishing validation if this workflow + # is triggered by a pull-request. Uses cargo-overlay-registry to resolve + # interdependencies between workspace crates that aren't on crates.io yet. + - name: Install cargo-overlay-registry + if: ${{ inputs.event_name == 'pull_request' }} + run: cargo install cargo-overlay-registry + - name: Package hyperlight-wasm (dry-run) if: ${{ inputs.event_name == 'pull_request' }} - working-directory: src/hyperlight_wasm - run: cargo package --manifest-path ./Cargo.toml --allow-dirty + run: | + set -euxo pipefail + rm -Rf ./target/package/tmp-registry + cargo overlay-registry \ + -r crates-io \ + -r local=./target/package/tmp-registry \ + -- \ + cargo publish --dry-run --allow-dirty \ + -p hyperlight-wasm-macro \ + -p hyperlight-wasm-runtime \ + -p hyperlight-wasm From d654bebaa52deff6353dced22016ad312f72a461 Mon Sep 17 00:00:00 2001 From: James Sturtevant Date: Tue, 7 Apr 2026 13:31:54 -0700 Subject: [PATCH 2/2] Respond to feedback Signed-off-by: James Sturtevant --- .github/workflows/dep_cargo_publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dep_cargo_publish.yml b/.github/workflows/dep_cargo_publish.yml index 7bccd229..68abfa04 100644 --- a/.github/workflows/dep_cargo_publish.yml +++ b/.github/workflows/dep_cargo_publish.yml @@ -79,6 +79,7 @@ jobs: -r local=./target/package/tmp-registry \ -- \ cargo publish --dry-run --allow-dirty \ + -p hyperlight-wasm-aot \ -p hyperlight-wasm-macro \ -p hyperlight-wasm-runtime \ -p hyperlight-wasm