-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The latest code for vmsdk can be found here: https://github.com/cc-api/cc-trusted-vmsdk Signed-off-by: zhongjie <[email protected]>
- Loading branch information
1 parent
bc6ef6d
commit 918cd2e
Showing
33 changed files
with
100 additions
and
2,901 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
pull_request: | ||
paths: | ||
- 'common/python/**' | ||
- 'vmsdk/python/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: VMSDK Rust Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '.github/workflows/vmsdk-test-rust.yaml' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/vmsdk-test-rust.yaml' | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
VMSDK_RUST_TEST_DIR: 'vmsdk_rust_test' | ||
VMSDK_DIR: 'cc-trusted-vmsdk' | ||
|
||
jobs: | ||
vmsdk_rust_test: | ||
runs-on: [self-hosted, tdx-guest] | ||
defaults: | ||
run: | ||
working-directory: ${{env.VMSDK_RUST_TEST_DIR}} | ||
steps: | ||
- name: Clean up intermediate files | ||
continue-on-error: true | ||
run: | | ||
# Remove the intermediate files that could be left | ||
# by previous run with sudo. Otherwise, the checkout | ||
# will fail with permission issue. | ||
sudo rm -fr ./* | ||
- name: Checkout cc-trusted-api repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ${{env.VMSDK_RUST_TEST_DIR}} | ||
- name: Checkout cc-trusted-vmsdk repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: cc-api/cc-trusted-vmsdk | ||
path: ${{env.VMSDK_RUST_TEST_DIR}}/${{env.VMSDK_DIR}} | ||
- name: Run tests | ||
run: | | ||
cd ${{env.VMSDK_DIR}}/src/rust/cctrusted_vm | ||
# The trick here is to override the dependencies with local version. | ||
echo "" >> Cargo.toml | ||
echo "[patch.crates-io]" >> Cargo.toml | ||
echo 'cctrusted_base = { path = "../../../../common/rust/cctrusted_base" }' >> Cargo.toml | ||
sudo bash -c "export CARGO_TERM_COLOR=always && cargo test --verbose" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.