-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from PJK/mips-ci
Fix NaN handling on mips/mipsel and Windows; disable value propagation for signaling NaNs; add mips CI
- Loading branch information
Showing
10 changed files
with
117 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,30 +3,38 @@ version: 2.1 | |
commands: | ||
linux-setup: | ||
steps: | ||
- run: sudo apt-get update | ||
# NEEDRESTART_MODE prevents automatic restarts which seem to hang. | ||
- run: sudo NEEDRESTART_MODE=l apt-get install -y cmake ${TOOLCHAIN_PACKAGES} | ||
- run: sudo NEEDRESTART_MODE=l apt-get install -y libcmocka-dev libcjson-dev | ||
- run: sudo apt-get update | ||
# NEEDRESTART_MODE prevents automatic restarts which seem to hang. | ||
- run: sudo NEEDRESTART_MODE=l apt-get install -y cmake ${TOOLCHAIN_PACKAGES} | ||
- run: sudo NEEDRESTART_MODE=l apt-get install -y libcmocka-dev libcjson-dev | ||
install-cmocka-from-source: | ||
steps: | ||
- run: git clone https://git.cryptomilk.org/projects/cmocka.git ~/cmocka | ||
- run: > | ||
cd $(mktemp -d /tmp/build.XXXX) && | ||
cmake ~/cmocka && | ||
make && | ||
sudo make install | ||
build: | ||
steps: | ||
- run: > | ||
cmake -DWITH_TESTS=ON \ | ||
-DWITH_EXAMPLES=ON \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DSANITIZE=OFF \ | ||
-DCOVERAGE="${CMAKE_COVERAGE:='OFF'}" \ | ||
. | ||
- run: make -j 16 VERBOSE=1 | ||
- run: > | ||
cmake -DWITH_TESTS=ON \ | ||
-DWITH_EXAMPLES=ON \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DSANITIZE=OFF \ | ||
-DCOVERAGE="${CMAKE_COVERAGE:='OFF'}" \ | ||
. | ||
- run: make -j 16 VERBOSE=1 | ||
build-release: | ||
steps: | ||
- run: > | ||
cmake -DWITH_TESTS=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
. | ||
- run: make -j 16 VERBOSE=1 | ||
- run: > | ||
cmake -DWITH_TESTS=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
. | ||
- run: make -j 16 VERBOSE=1 | ||
test: | ||
steps: | ||
- run: ctest -VV | ||
- run: ctest -VV | ||
|
||
orbs: | ||
codecov: codecov/[email protected] | ||
|
@@ -203,7 +211,23 @@ jobs: | |
- run: /c/Program\ Files/Cmake/bin/cmake --build libcbor_build | ||
- run: > | ||
export PATH="$(pwd)/cmocka_build/src/Debug/:$PATH" && | ||
/c/Program\ Files/Cmake/bin/ctest.exe --test-dir libcbor_build --output-on-failure | ||
/c/Program\ Files/Cmake/bin/ctest.exe --test-dir libcbor_build -C Debug --output-on-failure | ||
build-and-test-mips: &dockcross-job | ||
docker: | ||
- image: dockcross/linux-mips-lts | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: /home/circleci/project | ||
- install-cmocka-from-source | ||
- build | ||
- test | ||
|
||
build-and-test-mipsel: | ||
<<: *dockcross-job | ||
docker: | ||
- image: dockcross/linux-mipsel-lts | ||
|
||
workflows: | ||
build-and-test: | ||
|
@@ -215,6 +239,8 @@ workflows: | |
- build-and-test-release-clang | ||
- build-and-test-arm | ||
- build-and-test-win | ||
- build-and-test-mips | ||
- build-and-test-mipsel | ||
- build-bazel | ||
- llvm-coverage | ||
# OSX builds are expensive, run only on master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters