diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index 8fcf8e1..4e52133 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 cb47a61..68abfa0 100644 --- a/.github/workflows/dep_cargo_publish.yml +++ b/.github/workflows/dep_cargo_publish.yml @@ -62,9 +62,24 @@ 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-aot \ + -p hyperlight-wasm-macro \ + -p hyperlight-wasm-runtime \ + -p hyperlight-wasm