mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 05:16:47 +00:00
Add TDX compilation test
This commit is contained in:
parent
b3d30f7ac3
commit
a0a8493f98
16
.github/workflows/test_asterinas.yml
vendored
16
.github/workflows/test_asterinas.yml
vendored
@ -24,6 +24,22 @@ jobs:
|
|||||||
id: check
|
id: check
|
||||||
run: make check
|
run: make check
|
||||||
|
|
||||||
|
compilation:
|
||||||
|
if: github.event_name == 'push' || github.event_name == 'pull_request'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 15
|
||||||
|
container: asterinas/asterinas:0.9.4
|
||||||
|
steps:
|
||||||
|
- run: echo "Running in asterinas/asterinas:0.9.4"
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# The compilation test builds the project with all features enabled.
|
||||||
|
# In contrast, subsequent tests may choose to enable select features.
|
||||||
|
- name: Compilation
|
||||||
|
id: compilation
|
||||||
|
run: make build FEATURES=all
|
||||||
|
|
||||||
unit-test:
|
unit-test:
|
||||||
if: github.event_name == 'push' || github.event_name == 'pull_request'
|
if: github.event_name == 'push' || github.event_name == 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
5
Makefile
5
Makefile
@ -32,6 +32,7 @@ GDB_PROFILE_INTERVAL ?= 0.1
|
|||||||
AUTO_TEST ?= none
|
AUTO_TEST ?= none
|
||||||
EXTRA_BLOCKLISTS_DIRS ?= ""
|
EXTRA_BLOCKLISTS_DIRS ?= ""
|
||||||
SYSCALL_TEST_DIR ?= /tmp
|
SYSCALL_TEST_DIR ?= /tmp
|
||||||
|
FEATURES ?=
|
||||||
# End of auto test features.
|
# End of auto test features.
|
||||||
|
|
||||||
# Network settings
|
# Network settings
|
||||||
@ -87,6 +88,10 @@ else
|
|||||||
CARGO_OSDK_ARGS += --boot-method="$(BOOT_METHOD)"
|
CARGO_OSDK_ARGS += --boot-method="$(BOOT_METHOD)"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef FEATURES
|
||||||
|
CARGO_OSDK_ARGS += --features="$(FEATURES)"
|
||||||
|
endif
|
||||||
|
|
||||||
# To test the linux-efi-handover64 boot protocol, we need to use Debian's
|
# To test the linux-efi-handover64 boot protocol, we need to use Debian's
|
||||||
# GRUB release, which is installed in /usr/bin in our Docker image.
|
# GRUB release, which is installed in /usr/bin in our Docker image.
|
||||||
ifeq ($(BOOT_PROTOCOL), linux-efi-handover64)
|
ifeq ($(BOOT_PROTOCOL), linux-efi-handover64)
|
||||||
|
@ -70,4 +70,6 @@ version = "1.0"
|
|||||||
features = ["spin_no_std"]
|
features = ["spin_no_std"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
all = ["cvm_guest"]
|
||||||
|
|
||||||
cvm_guest = ["dep:tdx-guest", "ostd/cvm_guest"]
|
cvm_guest = ["dep:tdx-guest", "ostd/cvm_guest"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user