Skip to content

Commit 9584ff5

Browse files
committed
support windows hook in stable
support scalable stack
1 parent eb9513b commit 9584ff5

File tree

175 files changed

+8213
-8520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+8213
-8520
lines changed

.github/workflows/ci-preemptive.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env sh
2+
3+
set -ex
4+
5+
CARGO=cargo
6+
if [ "${CROSS}" = "1" ]; then
7+
export CARGO_NET_RETRY=5
8+
export CARGO_NET_TIMEOUT=10
9+
10+
cargo install cross
11+
CARGO=cross
12+
fi
13+
14+
# If a test crashes, we want to know which one it was.
15+
export RUST_TEST_THREADS=1
16+
export RUST_BACKTRACE=1
17+
18+
# test open-coroutine-core mod
19+
cd "${PROJECT_DIR}"/core
20+
"${CARGO}" test --target "${TARGET}" --features preemptive
21+
"${CARGO}" test --target "${TARGET}" --features preemptive --release
22+
23+
# test open-coroutine
24+
cd "${PROJECT_DIR}"/open-coroutine
25+
"${CARGO}" test --target "${TARGET}" --features preemptive
26+
"${CARGO}" test --target "${TARGET}" --features preemptive --release
27+
28+
# test io_uring
29+
if [ "${TARGET}" = "x86_64-unknown-linux-gnu" ]; then
30+
cd "${PROJECT_DIR}"/core
31+
"${CARGO}" test --target "${TARGET}" --no-default-features --features io_uring,preemptive
32+
"${CARGO}" test --target "${TARGET}" --no-default-features --features io_uring,preemptive --release
33+
cd "${PROJECT_DIR}"/open-coroutine
34+
"${CARGO}" test --target "${TARGET}" --no-default-features --features io_uring,preemptive
35+
"${CARGO}" test --target "${TARGET}" --no-default-features --features io_uring,preemptive --release
36+
fi

.github/workflows/ci.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env sh
2+
3+
set -ex
4+
5+
CARGO=cargo
6+
if [ "${CROSS}" = "1" ]; then
7+
export CARGO_NET_RETRY=5
8+
export CARGO_NET_TIMEOUT=10
9+
10+
cargo install cross
11+
CARGO=cross
12+
fi
13+
14+
# If a test crashes, we want to know which one it was.
15+
export RUST_TEST_THREADS=1
16+
export RUST_BACKTRACE=1
17+
18+
# test open-coroutine-core mod
19+
cd "${PROJECT_DIR}"/core
20+
"${CARGO}" test --target "${TARGET}"
21+
"${CARGO}" test --target "${TARGET}" --release
22+
23+
# test open-coroutine
24+
cd "${PROJECT_DIR}"/open-coroutine
25+
"${CARGO}" test --target "${TARGET}"
26+
"${CARGO}" test --target "${TARGET}" --release
27+
28+
# test io_uring
29+
if [ "${TARGET}" = "x86_64-unknown-linux-gnu" ]; then
30+
cd "${PROJECT_DIR}"/core
31+
"${CARGO}" test --target "${TARGET}" --no-default-features --features io_uring
32+
"${CARGO}" test --target "${TARGET}" --no-default-features --features io_uring --release
33+
cd "${PROJECT_DIR}"/open-coroutine
34+
"${CARGO}" test --target "${TARGET}" --no-default-features --features io_uring
35+
"${CARGO}" test --target "${TARGET}" --no-default-features --features io_uring --release
36+
fi

0 commit comments

Comments
 (0)