Skip to content

Commit

Permalink
update release.yml and CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Oct 2, 2024
1 parent 813eb4e commit 9b40aca
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 35 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -D LIBUV_BUILD_TESTS=OFF
cmake .. -DCMAKE_BUILD_TYPE=Release -D BUILD_TESTING=OFF
cmake --build .
- name: Create RPM Installer from Release
run: |
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -D LIBUV_BUILD_TESTS=OFF
cmake .. -DCMAKE_BUILD_TYPE=Release -D BUILD_TESTING=OFF
cmake --build .
cpack -G DEB
- name: Upload ${{ matrix.arch }} DEB binary artifacts
Expand Down
63 changes: 30 additions & 33 deletions tests/thread/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,38 @@ else()
set(LIBTCC_LDFLAGS -pthread -Wl,-rpath=${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
endif()

#if(NOT ${TARGET_ARCH} STREQUAL armv7
#AND NOT ${TARGET_ARCH} STREQUAL arm64
# AND NOT ${TARGET_ARCH} STREQUAL riscv64)
add_custom_target(
test-cthread ALL
COMMAND tcc ${TH_DIR}/test-cthread.c ${TH_CFLAGS} ${LIBTCC_LDFLAGS} -o ${CMAKE_BINARY_DIR}/test-cthread${EXESUF}
BYPRODUCTS ${CMAKE_BINARY_DIR}/test-cthread${EXESUF}
SOURCES ${TH_DIR}/test-cthread.c )
add_test(NAME test-cthread COMMAND test-cthread WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_custom_target(test-cthread ALL
COMMAND tcc ${TH_DIR}/test-cthread.c ${TH_CFLAGS} ${LIBTCC_LDFLAGS} -o ${CMAKE_BINARY_DIR}/test-cthread${EXESUF}
BYPRODUCTS ${CMAKE_BINARY_DIR}/test-cthread${EXESUF}
SOURCES ${TH_DIR}/test-cthread.c )

add_custom_target(
test_pool-shutdown ALL
COMMAND tcc ${TH_DIR}/test_pool-shutdown.c ${TH_CFLAGS} ${LIBTCC_LDFLAGS} -o ${CMAKE_BINARY_DIR}/test_pool-shutdown${EXESUF}
BYPRODUCTS ${CMAKE_BINARY_DIR}/test_pool-shutdown${EXESUF}
SOURCES ${TH_DIR}/test_pool-shutdown.c )
add_test(NAME test_pool-shutdown COMMAND test_pool-shutdown WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_custom_target(test_pool-shutdown ALL
COMMAND tcc ${TH_DIR}/test_pool-shutdown.c ${TH_CFLAGS} ${LIBTCC_LDFLAGS} -o ${CMAKE_BINARY_DIR}/test_pool-shutdown${EXESUF}
BYPRODUCTS ${CMAKE_BINARY_DIR}/test_pool-shutdown${EXESUF}
SOURCES ${TH_DIR}/test_pool-shutdown.c )

add_custom_target(test_pool-wait ALL
COMMAND tcc ${TH_DIR}/test_pool-wait.c ${TH_CFLAGS} ${LIBTCC_LDFLAGS} -o ${CMAKE_BINARY_DIR}/test_pool-wait${EXESUF}
BYPRODUCTS ${CMAKE_BINARY_DIR}/test_pool-wait${EXESUF}
SOURCES ${TH_DIR}/test_pool-wait.c )

add_custom_target(
test_pool-wait ALL
COMMAND tcc ${TH_DIR}/test_pool-wait.c ${TH_CFLAGS} ${LIBTCC_LDFLAGS} -o ${CMAKE_BINARY_DIR}/test_pool-wait${EXESUF}
BYPRODUCTS ${CMAKE_BINARY_DIR}/test_pool-wait${EXESUF}
SOURCES ${TH_DIR}/test_pool-wait.c )
add_test(NAME test_pool-wait COMMAND test_pool-wait WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_custom_target(test-atomicity ALL
COMMAND tcc ${TH_DIR}/test-atomicity.c ${TH_CFLAGS} ${LIBTCC_LDFLAGS} -o ${CMAKE_BINARY_DIR}/test-atomicity${EXESUF}
BYPRODUCTS ${CMAKE_BINARY_DIR}/test-atomicity${EXESUF}
SOURCES ${TH_DIR}/test-atomicity.c )

add_custom_target(
test-atomicity ALL
COMMAND tcc ${TH_DIR}/test-atomicity.c ${TH_CFLAGS} ${LIBTCC_LDFLAGS} -o ${CMAKE_BINARY_DIR}/test-atomicity${EXESUF}
BYPRODUCTS ${CMAKE_BINARY_DIR}/test-atomicity${EXESUF}
SOURCES ${TH_DIR}/test-atomicity.c )
add_test(NAME test-atomicity COMMAND test-atomicity WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_custom_target(test-thread_local ALL
COMMAND tcc ${TH_DIR}/test-thread_local.c ${TH_CFLAGS} ${LIBTCC_LDFLAGS} -o ${CMAKE_BINARY_DIR}/test-thread_local${EXESUF}
BYPRODUCTS ${CMAKE_BINARY_DIR}/test-thread_local${EXESUF}
SOURCES ${TH_DIR}/test-thread_local.c )

add_custom_target(
test-thread_local ALL
COMMAND tcc ${TH_DIR}/test-thread_local.c ${TH_CFLAGS} ${LIBTCC_LDFLAGS} -o ${CMAKE_BINARY_DIR}/test-thread_local${EXESUF}
BYPRODUCTS ${CMAKE_BINARY_DIR}/test-thread_local${EXESUF}
SOURCES ${TH_DIR}/test-thread_local.c )
if(NOT ${TARGET_ARCH} STREQUAL armv7)
add_test(NAME test-cthread COMMAND test-cthread WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_test(NAME test_pool-shutdown COMMAND test_pool-shutdown WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_test(NAME test_pool-wait COMMAND test_pool-wait WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
if(${TARGET_ARCH} STREQUAL arm64 AND DEFINED ENV{GITHUB_ACTIONS})
else()
add_test(NAME test-atomicity COMMAND test-atomicity WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
endif()
add_test(NAME test-thread_local COMMAND test-thread_local WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
#endif()
endif()

0 comments on commit 9b40aca

Please sign in to comment.