Skip to content

Commit e32828b

Browse files
authored
Add hyperlight-libc to CI publishing (#1439)
* Add hyperlight-libc to CI publishing Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com> * change hyperlight-libc readme Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com> --------- Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent 58fcbef commit e32828b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/CargoPublish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
fi
7070
}
7171
72+
needs_publish hyperlight-libc
7273
needs_publish hyperlight-common
7374
needs_publish hyperlight-guest
7475
needs_publish hyperlight-guest-macro
@@ -81,6 +82,13 @@ jobs:
8182
- name: Authenticate with crates.io
8283
uses: rust-lang/crates-io-auth-action@v1
8384
id: crates-io-auth
85+
86+
- name: Publish hyperlight-libc
87+
continue-on-error: ${{ inputs.dry_run }}
88+
run: cargo publish --manifest-path ./src/hyperlight_libc/Cargo.toml ${{ inputs.dry_run && '--dry-run' || '' }}
89+
env:
90+
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}
91+
if: env.PUBLISH_HYPERLIGHT_LIBC != 'false'
8492

8593
- name: Publish hyperlight-common
8694
continue-on-error: ${{ inputs.dry_run }}

src/hyperlight_libc/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
[package]
32
name = "hyperlight-libc"
43
links = "c"
@@ -8,7 +7,7 @@ rust-version.workspace = true
87
license.workspace = true
98
homepage.workspace = true
109
repository.workspace = true
11-
readme.workspace = true
10+
readme = "README.md"
1211
description = """
1312
This crate provides picolibc for Hyperlight guests.
1413
It builds the picolibc library and generates bindings to the libc types and functions.

0 commit comments

Comments
 (0)