File tree Expand file tree Collapse file tree 7 files changed +15
-13
lines changed
Expand file tree Collapse file tree 7 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -7,20 +7,20 @@ if [ $# -eq 0 ]; then
77fi
88SDK_DIR_PREFIX=$1
99
10- DCAP_VERSION=1.23.100.0-jammy1
10+ DCAP_VERSION=1.23.100.0-noble1
1111# create tmp dir
1212TMP_DIR=$( mktemp -d)
1313echo " Created temp dir: $TMP_DIR "
1414cd $TMP_DIR
1515
16- wget https://download.01.org/intel-sgx/sgx-dcap/1.21 /linux/distro/ubuntu22 .04-server/sgx_linux_x64_sdk_2.24 .100.3 .bin -O sgx_linux_x64_sdk.bin
16+ wget https://download.01.org/intel-sgx/sgx-dcap/1.23 /linux/distro/ubuntu24 .04-server/sgx_linux_x64_sdk_2.26 .100.0 .bin -O sgx_linux_x64_sdk.bin
1717chmod a+x sgx_linux_x64_sdk.bin
1818./sgx_linux_x64_sdk.bin --prefix=$SDK_DIR_PREFIX
1919rm -rf ./sgx_linux_x64_sdk.bin
2020
2121wget https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key
2222cat intel-sgx-deb.key | tee /etc/apt/keyrings/intel-sgx-keyring.asc > /dev/null
23- echo ' deb [signed-by=/etc/apt/keyrings/intel-sgx-keyring.asc arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main' | tee /etc/apt/sources.list.d/intel-sgx.list
23+ echo ' deb [signed-by=/etc/apt/keyrings/intel-sgx-keyring.asc arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu noble main' | tee /etc/apt/sources.list.d/intel-sgx.list
2424
2525apt-get update -y
2626apt-get install -y libsgx-dcap-ql=$DCAP_VERSION libsgx-dcap-ql-dev=$DCAP_VERSION
Original file line number Diff line number Diff line change 88
99jobs :
1010 test :
11- runs-on : ubuntu-22 .04
11+ runs-on : ubuntu-24 .04
1212 env :
1313 SGX_MODE : SW
1414 steps :
15- - uses : actions/checkout@v4
15+ - uses : actions/checkout@v5
1616 - uses : actions-rust-lang/setup-rust-toolchain@v1
1717 with :
1818 toolchain : nightly-2025-12-05
Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ enclave-test:
4242untrusted-test :
4343 @echo " Running untrusted crate tests..."
4444 @echo " Testing sgx-types..."
45- @cd sgx-types && cargo test --features urts
45+ @cargo +stable test --manifest-path sgx-types/Cargo.toml --features urts
4646 @echo " Testing sgx-urts..."
47- @cd sgx-urts && cargo test --features simulate_utils
47+ @cargo +stable test --manifest-path sgx-urts/Cargo.toml --no-default-features --features simulate_utils
4848 @echo " Testing sgx-build..."
49- @cd sgx-build && cargo test
49+ @cargo +stable test --manifest-path sgx-build/Cargo.toml
5050 @echo " Testing cargo-sgx..."
51- @cd cargo-sgx && cargo test
51+ @cargo +stable test --manifest-path cargo-sgx/Cargo.toml
5252
5353.PHONY : toml-fmt
5454toml-fmt :
Original file line number Diff line number Diff line change 11# Paths
2- SGX_SDK ?= /opt/sgxsdk
2+ SGX_SDK ?= /opt/intel/ sgxsdk
33DEBUG := 0
44ifeq ($(DEBUG ) , 0)
55 PROFILE := release
Original file line number Diff line number Diff line change @@ -12,10 +12,11 @@ name = "sgx_urts"
1212crate-type = [" rlib" ]
1313
1414[features ]
15- default = []
15+ default = [" signal " ]
1616global_init = [" global_exit" ]
1717global_exit = [" global_init" ]
1818simulate_utils = [" tracing" , " object" , " iced-x86" ]
19+ signal = []
1920
2021[dependencies ]
2122sgx-types = { path = " ../sgx-types" , default-features = false , features = [" urts" ] }
Original file line number Diff line number Diff line change 1515// specific language governing permissions and limitations
1616// under the License..
1717
18- #![ feature( linkage) ]
18+ #![ cfg_attr ( feature = "signal" , feature ( linkage) ) ]
1919#![ allow( clippy:: not_unsafe_ptr_arg_deref) ]
2020
2121pub mod asyncio;
@@ -27,6 +27,7 @@ pub mod mem;
2727pub mod net;
2828pub mod pipe;
2929pub mod process;
30+ #[ cfg( feature = "signal" ) ]
3031pub mod signal;
3132#[ cfg( feature = "simulate_utils" ) ]
3233pub mod simulate;
Original file line number Diff line number Diff line change 11# Paths
2- SGX_SDK ?= /opt/sgxsdk
2+ SGX_SDK ?= /opt/intel/ sgxsdk
33DEBUG := 0
44ifeq ($(DEBUG ) , 0)
55 PROFILE := release
You can’t perform that action at this time.
0 commit comments