4949 -DCTEST_CMAKE_GENERATOR="Unix Makefiles"
5050 -DCTEST_SITE="Github"
5151 -DCTEST_BUILD_NAME="${{matrix.os}}-${{matrix.cxx_compiler}}"
52- -DCTEST_BUILD_FLAGS="-j"
5352
5453 steps :
5554 - uses : actions/checkout@v4
7978 echo "LDFLAGS=\"-L$(brew --prefix llvm)/lib\"" >> $GITHUB_ENV
8079 echo "CPPFLAGS=\"-I$(brew --prefix llvm)/include\"" >> $GITHUB_ENV
8180
81+ - if : github.event_name == 'pull_request'
82+ run : echo "CDASH_ARGS=${CDASH_ARGS} -DCTEST_UPDATE_VERSION_OVERRIDE=${{ github.event.pull_request.head.sha }}" > "${GITHUB_ENV}"
83+
8284 - name : Run CMake
8385 id : cmake
8486 run : >-
@@ -98,3 +100,83 @@ jobs:
98100 - name : Run Tests
99101 id : test
100102 run : ctest -VV -S .github/ctest_test.cmake ${{ env.CDASH_ARGS }}
103+
104+ win :
105+ runs-on : ${{matrix.os}}
106+ strategy :
107+ fail-fast : false
108+ matrix :
109+ include :
110+ - generator : Visual Studio 16 2019
111+ os : windows-2019
112+ platform : x64
113+ arch : x64
114+ build_type : Release
115+
116+ - generator : Visual Studio 16 2019
117+ os : windows-2019
118+ platform : x86
119+ arch : Win32
120+ build_type : Release
121+
122+ - generator : Visual Studio 17 2022
123+ os : windows-2022
124+ platform : x64
125+ arch : x64
126+ build_type : Release
127+
128+ - generator : Visual Studio 17 2022
129+ os : windows-2022
130+ platform : x86
131+ arch : Win32
132+ build_type : Release
133+
134+ defaults :
135+ run :
136+ shell : bash
137+ env :
138+ CDASH_ARGS : >-
139+ -DCTEST_BINARY_DIRECTORY="${{github.workspace}}\\build"
140+ -DCTEST_BUILD_NAME="${{matrix.os}}-${{matrix.platform}}"
141+ -DCTEST_CMAKE_EXTRA_OPTIONS="-A ${{matrix.arch}}"
142+ -DCTEST_CMAKE_GENERATOR="${{matrix.generator}}"
143+ -DCTEST_SITE="Github"
144+ -DCTEST_SOURCE_DIRECTORY="${{github.workspace}}"
145+ steps :
146+ - uses : actions/checkout@v4
147+ with :
148+ submodules : recursive
149+
150+ - uses : TheMrMilchmann/setup-msvc-dev@v3
151+ with :
152+ arch : ${{matrix.platform}}
153+
154+ - name : Setup Python
155+ uses : actions/setup-python@v4
156+ with :
157+ python-version : ' 3.8'
158+ architecture : ${{matrix.platform}}
159+
160+ - name : Install zfpy dependencies
161+ run : |
162+ python -m pip install cython
163+ python -m pip install oldest-supported-numpy
164+ python -m pip install setuptools
165+
166+ - if : github.event_name == 'pull_request'
167+ run : echo "CDASH_ARGS=${CDASH_ARGS} -DCTEST_UPDATE_VERSION_OVERRIDE=${{ github.event.pull_request.head.sha }}" > "${GITHUB_ENV}"
168+
169+ - name : Run CMake
170+ id : cmake
171+ run : >-
172+ ctest -VV -S .github/ctest_configure.cmake ${{ env.CDASH_ARGS }}
173+ -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
174+ -DBUILD_TESTING_FULL=ON
175+ -DZFP_WITH_OPENMP=OFF
176+ -DBUILD_ZFPY=ON
177+ - name : Build
178+ id : build
179+ run : ctest -VV -S .github/ctest_build.cmake ${{ env.CDASH_ARGS }}
180+ - name : Run Tests
181+ id : test
182+ run : ctest -C ${{ matrix.build_type }} -VV -S .github/ctest_test.cmake ${{ env.CDASH_ARGS }}
0 commit comments