Skip to content

Commit 8e066cc

Browse files
committed
Add tracing to publishing
Signed-off-by: James Sturtevant <[email protected]>
1 parent 122642a commit 8e066cc

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/CargoPublish.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
VERSION="${VERSION#refs/heads/release/v}"
4747
echo "VERSION=$VERSION" >> $GITHUB_ENV
4848
fi
49-
./dev/verify-version.sh "$VERSION" hyperlight-common hyperlight-guest hyperlight-guest-bin hyperlight-host hyperlight-component-util hyperlight-component-macro
49+
./dev/verify-version.sh "$VERSION" hyperlight-common hyperlight-guest hyperlight-guest-bin hyperlight-host hyperlight-component-util hyperlight-component-macro hyperlight-guest-tracing-macro hyperlight-guest-tracing
5050
5151
- name: Determine which crates need publishing
5252
run: |
@@ -75,13 +75,29 @@ jobs:
7575
needs_publish hyperlight-component-util
7676
needs_publish hyperlight-component-macro
7777
needs_publish hyperlight-host
78+
needs_publish hyperlight-guest-tracing-macro
79+
needs_publish hyperlight-guest-tracing
7880
7981
- name: Publish hyperlight-common
8082
continue-on-error: ${{ inputs.dry_run }}
8183
run: cargo publish --manifest-path ./src/hyperlight_common/Cargo.toml ${{ inputs.dry_run && '--dry-run' || '' }}
8284
env:
8385
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_PUBLISH_TOKEN }}
8486
if: env.PUBLISH_HYPERLIGHT_COMMON != 'false'
87+
88+
- name: Publish hyperlight-guest-tracing-macro
89+
continue-on-error: ${{ inputs.dry_run }}
90+
run: cargo publish --manifest-path ./src/hyperlight_guest_tracing_macro/Cargo.toml ${{ inputs.dry_run && '--dry-run' || '' }}
91+
env:
92+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_PUBLISH_TOKEN }}
93+
if: env.PUBLISH_HYPERLIGHT_GUEST_TRACING_MACRO != 'false'
94+
95+
- name: Publish hyperlight-guest-tracing
96+
continue-on-error: ${{ inputs.dry_run }}
97+
run: cargo publish --manifest-path ./src/hyperlight_guest_tracing/Cargo.toml ${{ inputs.dry_run && '--dry-run' || '' }}
98+
env:
99+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_PUBLISH_TOKEN }}
100+
if: env.PUBLISH_HYPERLIGHT_GUEST_TRACING != 'false'
85101

86102
- name: Publish hyperlight-guest
87103
continue-on-error: ${{ inputs.dry_run }}

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ hyperlight-host = { path = "src/hyperlight_host", version = "0.8.0", default-fea
4242
hyperlight-guest = { path = "src/hyperlight_guest", version = "0.8.0", default-features = false }
4343
hyperlight-guest-bin = { path = "src/hyperlight_guest_bin", version = "0.8.0", default-features = false }
4444
hyperlight-testing = { path = "src/hyperlight_testing", default-features = false }
45-
hyperlight-guest-tracing = { path = "src/hyperlight_guest_tracing", default-features = false }
46-
hyperlight-guest-tracing-macro = { path = "src/hyperlight_guest_tracing_macro", default-features = false }
45+
hyperlight-guest-tracing = { path = "src/hyperlight_guest_tracing", version = "0.8.0", default-features = false }
46+
hyperlight-guest-tracing-macro = { path = "src/hyperlight_guest_tracing_macro", version = "0.8.0", default-features = false }
4747
hyperlight-component-util = { path = "src/hyperlight_component_util", version = "0.8.0", default-features = false }
4848
hyperlight-component-macro = { path = "src/hyperlight_component_macro", version = "0.8.0", default-features = false }
4949

0 commit comments

Comments
 (0)