fix: trying again to use TARGET_RUNTIME_DLL_DIRS #21
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: Continuous Integration for Windows | |
on: | |
push: | |
branches: | |
- master | |
- dev_v10 | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [windows-2019] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: { python-version: "3.10" } | |
- name: Conan cache | |
uses: actions/cache@v4 | |
with: | |
path: conan_cache_save.tgz | |
key: conan-${{ matrix.os }}-${{ hashFiles('conan*.[pl][yo]*') }} | |
- name: Setup conan | |
shell: bash | |
run: bash < .github/scripts/conan-ci-setup.sh | |
- name: Conan install release dep | |
shell: bash | |
run: conan install . -o "*:shared=True" -b missing | |
- name: Conan install debug dep | |
shell: bash | |
run: conan install . -o "*:shared=True" -s build_type=Debug -b missing | |
- name: Save cache | |
run: conan cache save '*/*:*' --file=conan_cache_save.tgz | |
- name: Debug ConanPresets | |
shell: bash | |
run: echo "ConanPresets.json"; echo "==================="; cat ConanPresets.json | |
- name: Debug generators/CMakePresets | |
shell: bash | |
run: echo; find . -path "*/generators/CMakePresets.json" -exec cat {} \; | |
- name: Configure multi-config generator | |
shell: bash | |
run: cmake --preset=ci-windows | |
- name: Debug genex | |
shell: bash | |
run: cmake --build build/ --target genexdebug3 --config=Debug | |
- name: Build | |
shell: bash | |
run: cmake --build --preset=ci-windows | |
- name: Source runtime | |
shell: bash | |
run: .\\build\\generators\\conanrun.bat | |
- name: Test | |
shell: bash | |
run: MEDCOUPLING_RESOURCE_DIR="${PWD}/resources" ctest --preset=ci-windows || echo $(ls -R .); cd build && find . -name UnitTestsResult | xargs cat ; cd .. |