Skip to content

Commit cce82aa

Browse files
authored
Fix failed publishing (#446)
* Fix failed publishing Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Respond to feedback Signed-off-by: James Sturtevant <jsturtevant@gmail.com> --------- Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent ac04b52 commit cce82aa

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.github/workflows/CreateRelease.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ jobs:
3939
uses: hyperlight-dev/ci-setup-workflow@v1.8.0
4040
with:
4141
rust-toolchain: "1.89"
42-
- name: Package hyperlight-wasm crate
43-
if: ${{ contains(github.ref, 'refs/heads/release/') }}
44-
run: cargo package -p hyperlight-wasm
45-
shell: bash
4642
- name: Set HYPERLIGHTWASM_VERSION
4743
run: |
4844
git fetch --tags

.github/workflows/dep_cargo_publish.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,24 @@ jobs:
6262
# allow-dirty is needed in the publish below because we are using the --no-git-commit option above to cover the case
6363
# where no changes are made by cargo ws version because the version is already correct
6464

65-
# Run cargo package to perform publishing validation if this workflow
66-
# is triggered by a pull-request
65+
# Run cargo publish --dry-run to perform publishing validation if this workflow
66+
# is triggered by a pull-request. Uses cargo-overlay-registry to resolve
67+
# interdependencies between workspace crates that aren't on crates.io yet.
68+
- name: Install cargo-overlay-registry
69+
if: ${{ inputs.event_name == 'pull_request' }}
70+
run: cargo install cargo-overlay-registry
71+
6772
- name: Package hyperlight-wasm (dry-run)
6873
if: ${{ inputs.event_name == 'pull_request' }}
69-
working-directory: src/hyperlight_wasm
70-
run: cargo package --manifest-path ./Cargo.toml --allow-dirty
74+
run: |
75+
set -euxo pipefail
76+
rm -Rf ./target/package/tmp-registry
77+
cargo overlay-registry \
78+
-r crates-io \
79+
-r local=./target/package/tmp-registry \
80+
-- \
81+
cargo publish --dry-run --allow-dirty \
82+
-p hyperlight-wasm-aot \
83+
-p hyperlight-wasm-macro \
84+
-p hyperlight-wasm-runtime \
85+
-p hyperlight-wasm

0 commit comments

Comments
 (0)