update github actions CI.yml for int64

This commit is contained in:
PeterAlfredLee 2022-05-19 16:35:46 +08:00
parent c95332c58c
commit 84cd07be48

View File

@ -26,6 +26,9 @@ jobs:
compiler: compiler:
- GCC - GCC
- CLANG - CLANG
features:
- ENABLE_INT64
- NONE_FEATURES
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: install build dependencies - name: install build dependencies
@ -47,14 +50,19 @@ jobs:
else else
export CC=clang export CC=clang
fi fi
if [ "${{ matrix.features }}" == "ENABLE_INT64" ]; then
FEATURE_CMAKE_OPTIONS="-DENABLE_INT64=ON"
else
FEATURE_CMAKE_OPTIONS="-DENABLE_INT64=OFF"
fi
#run build and test #run build and test
JOBS=20 JOBS=20
export CTEST_PARALLEL_LEVEL=$JOBS export CTEST_PARALLEL_LEVEL=$JOBS
export CTEST_OUTPUT_ON_FAILURE=1 export CTEST_OUTPUT_ON_FAILURE=1
mkdir -p build mkdir -p build
cd build cd build
echo [cmake]: cmake .. $EVENT_CMAKE_OPTIONS echo [cmake]: cmake .. $EVENT_CMAKE_OPTIONS $FEATURE_CMAKE_OPTIONS
cmake .. $EVENT_CMAKE_OPTIONS || (rm -rf * && cmake .. $EVENT_CMAKE_OPTIONS) cmake .. $EVENT_CMAKE_OPTIONS $FEATURE_CMAKE_OPTIONS || (rm -rf * && cmake .. $EVENT_CMAKE_OPTIONS $FEATURE_CMAKE_OPTIONS)
cmake --build . cmake --build .
make make
make test make test
@ -72,6 +80,9 @@ jobs:
compiler: compiler:
- GCC - GCC
- CLANG - CLANG
features:
- ENABLE_INT64
- NONE_FEATURES
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: build and test - name: build and test
@ -89,14 +100,19 @@ jobs:
else else
export CC=clang export CC=clang
fi fi
if [ "${{ matrix.features }}" == "ENABLE_INT64" ]; then
FEATURE_CMAKE_OPTIONS="-DENABLE_INT64=ON"
else
FEATURE_CMAKE_OPTIONS="-DENABLE_INT64=OFF"
fi
#run build and test #run build and test
JOBS=20 JOBS=20
export CTEST_PARALLEL_LEVEL=$JOBS export CTEST_PARALLEL_LEVEL=$JOBS
export CTEST_OUTPUT_ON_FAILURE=1 export CTEST_OUTPUT_ON_FAILURE=1
mkdir -p build mkdir -p build
cd build cd build
echo [cmake]: cmake .. $EVENT_CMAKE_OPTIONS echo [cmake]: cmake .. $EVENT_CMAKE_OPTIONS $FEATURE_CMAKE_OPTIONS
cmake .. $EVENT_CMAKE_OPTIONS || (rm -rf * && cmake .. $EVENT_CMAKE_OPTIONS) cmake .. $EVENT_CMAKE_OPTIONS $FEATURE_CMAKE_OPTIONS || (rm -rf * && cmake .. $EVENT_CMAKE_OPTIONS $FEATURE_CMAKE_OPTIONS)
cmake --build . cmake --build .
make make
make test make test