🛠 Only run extension function code if preprocessor okays it #97
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: Ubuntu | |
on: [push] | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
LC_ALL: C.UTF-8 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: configure | |
run: | | |
cmake -B build/debug -D ZTD_CUNEICODE_TESTS=ON -D ZTD_CUNEICODE_EXAMPLES=ON -D ZTD_CUNEICODE_GENERATE_SINGLE=ON | |
cmake -B build/release -D ZTD_CUNEICODE_TESTS=ON -D ZTD_CUNEICODE_EXAMPLES=ON -D ZTD_CUNEICODE_GENERATE_SINGLE=ON | |
- name: build | |
run: | | |
cmake --build build/debug --config Debug | |
cmake --build build/release --config Release | |
- name: test | |
run: | | |
cd build/debug | |
ctest --build-config Debug | |
cd ../.. | |
cd build/release | |
ctest --build-config Release | |
cd ../.. |