diff options
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5932a2c4..3a4442b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -80,7 +80,7 @@ jobs: docker exec emscripten emcc -v docker exec emscripten emcmake cmake -B emscripten -DWERROR=ON docker exec -w /src/emscripten emscripten make -j $(nproc) - + wasi: name: wasi runs-on: ubuntu-latest @@ -162,10 +162,35 @@ jobs: python -m pip install -U setuptools wheel pip python -m pip install "cmake==${WABT_CMAKE_VER}.*" cmake --version - - name: Configure WABT + + - name: configure (OpenSSL) run: cmake -G Ninja -S . -B out -DCMAKE_BUILD_TYPE=Release - - name: build + - name: build (OpenSSL) run: cmake --build out + - name: install (OpenSSL) + run: cmake --install out --prefix install + + - name: configure (PicoSHA2) + run: cmake -G Ninja -S . -B out-picosha -DCMAKE_BUILD_TYPE=Release -DUSE_INTERNAL_SHA256=ON + - name: build (PicoSHA2) + run: cmake --build out-picosha + - name: install (PicoSHA2) + run: cmake --install out-picosha --prefix install-picosha + + - name: test CMake package (OpenSSL) + run: > + ctest --build-and-test scripts/example-project example-openssl + --build-generator Ninja + --build-options -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PWD/install + --test-command ctest + + - name: test CMake package (PicoSHA2) + run: > + ctest --build-and-test scripts/example-project example-picosha + --build-generator Ninja + --build-options -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PWD/install-picosha + --test-command ctest + - name: unittests run: cmake --build out --target run-unittests - name: c-api-tests |