Lines Matching +full:build +full:- +full:linux +full:- +full:gcc

4   linux-setup:
6 - run: sudo apt-get update
8 - run: sudo NEEDRESTART_MODE=l apt-get install -y cmake ${TOOLCHAIN_PACKAGES}
9 - run: sudo NEEDRESTART_MODE=l apt-get install -y libcmocka-dev libcjson-dev
10 build:
12 - run: >
13 cmake -DWITH_TESTS=ON \
14 -DWITH_EXAMPLES=ON \
15 -DCMAKE_BUILD_TYPE=Debug \
16 -DSANITIZE=OFF \
17 -DCOVERAGE="${CMAKE_COVERAGE:='OFF'}" \
19 - run: make -j 16 VERBOSE=1
20 build-release:
22 - run: >
23 cmake -DWITH_TESTS=ON \
24 -DCMAKE_BUILD_TYPE=Release \
26 - run: make -j 16 VERBOSE=1
29 - run: ctest -VV
35 static-test:
36 machine: &default-machine
37 image: ubuntu-2204:2023.07.2
41 - checkout
42 - linux-setup
43 - run: sudo NEEDRESTART_MODE=l apt-get install -y clang-format doxygen cppcheck
44 - run: cppcheck --inline-suppr --error-exitcode=1 .
45 - run: bash clang-format.sh --verbose
46 - run: >
47 if ! $(git diff-index --quiet HEAD); then
48 echo "Code formatting doesn't conform to clang-format"
49 echo "Please run clang-format.sh, commit the diff, and push to re-run CI"
51 git diff | head -n 20
53 - run: >
55 echo "Doxygen warning (see above) -- misformatted docs?"
58 - run: >
60 pip3 install -r source/requirements.txt &&
63 build-and-test:
65 <<: *default-machine
70 - checkout
71 - linux-setup
72 - run: sudo NEEDRESTART_MODE=l apt-get install -y valgrind
73 - build
74 - test
75 - run: ctest -T Coverage
76 - codecov/upload
77 - run: ctest --output-on-failure -T memcheck | tee memcheck.out
78 - run: >
79 if grep -q 'Memory Leak\|IPW\|Uninitialized Memory Conditional\|Uninitialized Memory Read' memcheck.out; then
84 build-and-test-clang:
86 <<: *default-machine
92 - checkout
93 - linux-setup
94 - build
95 - test
97 build-and-test-32b:
99 <<: *default-machine
101 - checkout
102 - run: sudo apt-get update
103 - run: sudo NEEDRESTART_MODE=l apt-get install -y cmake gcc-multilib g++-multilib libc6-dev-i386
105 - run: git clone https://git.cryptomilk.org/projects/cmocka.git ~/cmocka
106 - run: >
107 cd $(mktemp -d /tmp/build.XXXX) &&
108 cmake ~/cmocka -DCMAKE_TOOLCHAIN_FILE=~/cmocka/cmake/Toolchain-cross-m32.cmake &&
112 - run: >
113 cmake -DWITH_TESTS=ON \
114 -DCMAKE_BUILD_TYPE=Debug \
115 -DCMAKE_TOOLCHAIN_FILE=~/cmocka/cmake/Toolchain-cross-m32.cmake \
117 - run: make -j 16 VERBOSE=1
118 - test
120 build-and-test-release-clang:
122 <<: *default-machine
128 - checkout
129 - linux-setup
130 - build-release
131 - test
133 llvm-coverage:
135 <<: *default-machine
142 - checkout
143 - linux-setup
144 - build
145 - run: make llvm-coverage
148 build-and-test-arm:
150 <<: *default-machine
155 - checkout
156 - linux-setup
157 - build
158 - test
160 build-bazel:
162 image: ubuntu-2204:2023.07.2
166 - checkout
167 - linux-setup
168 - run: sudo apt install apt-transport-https curl gnupg
169 - run: curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
170 - run: sudo mv bazel.gpg /etc/apt/trusted.gpg.d/
171 - run: echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
172 - run: sudo apt update
173 - run: sudo apt install bazel
174 - run: bazel --version
175 - run: >
177 bazel run -s src:hello
179 build-and-test-osx:
183 - checkout
184 - run: bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
185 - run: brew install cmocka cmake
186 - build
187 - test
190 build-and-test-win:
193 image: 'windows-server-2022-gui:current'
196 - checkout
197 - run: choco install cmake -y
198 - run: git clone https://git.cryptomilk.org/projects/cmocka.git
199 - run: cd cmocka && git checkout tags/cmocka-1.1.5
200 - run: /c/Program\ Files/Cmake/bin/cmake -S cmocka -B cmocka_build
201 - run: /c/Program\ Files/Cmake/bin/cmake --build cmocka_build
202 - run: /c/Program\ Files/Cmake/bin/cmake -S . -B libcbor_build -DWITH_TESTS=ON -DCMOCKA_INCLUDE_DIR=cmocka/include -DCMOCKA_LIBRARIES=$(pwd)/cmocka_build/src/Debug/cmocka.lib
203 - run: /c/Program\ Files/Cmake/bin/cmake --build libcbor_build
204 - run: >
206 /c/Program\ Files/Cmake/bin/ctest.exe --test-dir libcbor_build --output-on-failure
209 build-and-test:
211 - static-test
212 - build-and-test
213 - build-and-test-clang
214 - build-and-test-32b
215 - build-and-test-release-clang
216 - build-and-test-arm
217 - build-and-test-win
218 - build-bazel
219 - llvm-coverage
221 - build-and-test-osx:
223 - build-and-test