Skip to content

Commit 42e55e9

Browse files
authored
Merge pull request #9 from datachainlab/signal-optional
Add signal optional Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
2 parents 7868dbb + 7854c9a commit 42e55e9

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

.github/scripts/install_sgx_sdk.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ if [ $# -eq 0 ]; then
77
fi
88
SDK_DIR_PREFIX=$1
99

10-
DCAP_VERSION=1.23.100.0-jammy1
10+
DCAP_VERSION=1.23.100.0-noble1
1111
# create tmp dir
1212
TMP_DIR=$(mktemp -d)
1313
echo "Created temp dir: $TMP_DIR"
1414
cd $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
1717
chmod a+x sgx_linux_x64_sdk.bin
1818
./sgx_linux_x64_sdk.bin --prefix=$SDK_DIR_PREFIX
1919
rm -rf ./sgx_linux_x64_sdk.bin
2020

2121
wget https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key
2222
cat 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

2525
apt-get update -y
2626
apt-get install -y libsgx-dcap-ql=$DCAP_VERSION libsgx-dcap-ql-dev=$DCAP_VERSION

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ on:
88

99
jobs:
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

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ enclave-test:
4242
untrusted-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
5454
toml-fmt:

samples/hello-rust/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Paths
2-
SGX_SDK ?= /opt/sgxsdk
2+
SGX_SDK ?= /opt/intel/sgxsdk
33
DEBUG := 0
44
ifeq ($(DEBUG), 0)
55
PROFILE := release

sgx-urts/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ name = "sgx_urts"
1212
crate-type = ["rlib"]
1313

1414
[features]
15-
default = []
15+
default = ["signal"]
1616
global_init = ["global_exit"]
1717
global_exit = ["global_init"]
1818
simulate_utils = ["tracing", "object", "iced-x86"]
19+
signal = []
1920

2021
[dependencies]
2122
sgx-types = { path = "../sgx-types", default-features = false, features = ["urts"] }

sgx-urts/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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

2121
pub mod asyncio;
@@ -27,6 +27,7 @@ pub mod mem;
2727
pub mod net;
2828
pub mod pipe;
2929
pub mod process;
30+
#[cfg(feature = "signal")]
3031
pub mod signal;
3132
#[cfg(feature = "simulate_utils")]
3233
pub mod simulate;

unit-test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Paths
2-
SGX_SDK ?= /opt/sgxsdk
2+
SGX_SDK ?= /opt/intel/sgxsdk
33
DEBUG := 0
44
ifeq ($(DEBUG), 0)
55
PROFILE := release

0 commit comments

Comments
 (0)