Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/CreateRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/dep_cargo_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading