feat: call dictu from native code #1346
Workflow file for this run
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
name: CI | |
on: | |
pull_request: | |
branches: | |
- develop | |
- master | |
jobs: | |
check-tests-and-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Make dictu and run checkTests and orderDocs | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libcurl4-openssl-dev uuid-dev | |
cmake -DCMAKE_BUILD_TYPE=Debug -DDISABLE_HTTP=1 -B ./build | |
cmake --build ./build | |
./dictu ops/checkTests.du ci | |
./dictu ops/orderDocs.du --ci | |
test-ubuntu-cmake: | |
name: Test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Make dictu and run tests (No HTTP) | |
run: | | |
cd examples/ffi-example | |
cmake -DCMAKE_BUILD_TYPE=Debug -B ./build | |
cmake --build ./build | |
cd ../.. | |
cmake -DCMAKE_BUILD_TYPE=Debug -DDISABLE_HTTP=1 -B ./build | |
cmake --build ./build | |
./dictu tests/runTests.du ci | tee /dev/stderr | grep -q 'Total bytes lost: 0' | |
- name: Remove build directory | |
run: | | |
rm -rf build | |
- name: Make dictu and run tests (HTTP) | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libcurl4-openssl-dev uuid-dev | |
cmake -DCMAKE_BUILD_TYPE=Debug -B ./build | |
cmake --build ./build | |
./dictu tests/runTests.du ci | tee /dev/stderr | grep -q 'Total bytes lost: 0' | |
test-mac-cmake: | |
name: Test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macOS-latest, macOS-13, macOS-12] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Make dictu and run tests (No HTTP) | |
run: | | |
cd examples/ffi-example | |
cmake -DCMAKE_BUILD_TYPE=Debug -B ./build | |
cmake --build ./build | |
cd ../.. | |
cmake -DCMAKE_BUILD_TYPE=Debug -DDISABLE_HTTP=1 -B ./build | |
cmake --build ./build | |
./dictu tests/runTests.du ci | tee /dev/stderr | grep -q 'Total bytes lost: 0' | |
- name: Remove build directory | |
run: | | |
rm -rf build | |
- name: Make dictu and run tests | |
run: | | |
cmake -DCMAKE_BUILD_TYPE=Debug -B ./build | |
cmake --build ./build | |
./dictu tests/runTests.du ci | tee /dev/stderr | grep -q 'Total bytes lost: 0' | |
test-windows-cmake: | |
name: Test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2022, windows-2019] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Make dictu and run tests (No HTTP) | |
run: | | |
cd examples\ffi-example | |
cmake -DCMAKE_BUILD_TYPE=Debug -B .\build | |
cmake --build ./build --config Debug | |
cd ..\.. | |
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_SYSTEM_VERSION="10.0.18362.0" -DCICD=1 -DDISABLE_HTTP=1 -B build | |
cmake --build build | |
Debug\dictu.exe tests/runTests.du ci | |
run-examples: | |
name: Test Examples | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Make dictu and run examples | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libcurl4-openssl-dev uuid-dev | |
cmake -DCMAKE_BUILD_TYPE=Debug -B ./build | |
cmake --build ./build | |
./dictu examples/runExamples.du ci | tee /dev/stderr | grep -q 'Total bytes lost: 0' |