Skip to content

Commit bfcf8cf

Browse files
committed
Add Windows-Ninja-cl job to Nightly CI workflow
Co-developed-by: Łukasz Stolarczuk <[email protected]> Co-developed-by: Lukasz Dorau <[email protected]> Signed-off-by: Lukasz Dorau <[email protected]>
1 parent eb0fc90 commit bfcf8cf

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,70 @@ jobs:
8989
- name: Run tests under valgrind
9090
run: ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build ${{matrix.tool}}
9191

92+
Windows-Ninja-cl:
93+
name: Windows-Ninja-cl
94+
env:
95+
VCPKG_PATH: "${{github.workspace}}/build/vcpkg/packages/hwloc_x64-windows;${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows"
96+
BUILD_DIR : "${{github.workspace}}/build"
97+
strategy:
98+
matrix:
99+
os: ['windows-2019', 'windows-2022']
100+
build_type: [Debug, Release]
101+
compiler: [{c: cl, cxx: cl}]
102+
shared_library: ['ON', 'OFF']
103+
static_hwloc: ['ON', 'OFF']
104+
105+
runs-on: ${{matrix.os}}
106+
107+
steps:
108+
- name: Checkout
109+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
110+
with:
111+
fetch-depth: 0
112+
113+
- name: Initialize vcpkg
114+
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
115+
with:
116+
vcpkgGitCommitId: 3dd44b931481d7a8e9ba412621fa810232b66289
117+
vcpkgDirectory: ${{env.BUILD_DIR}}/vcpkg
118+
vcpkgJsonGlob: '**/vcpkg.json'
119+
120+
- name: Install dependencies
121+
run: vcpkg install
122+
123+
- name: Install Ninja
124+
uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5
125+
126+
- name: Configure MSVC environment
127+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
128+
129+
- name: Configure build
130+
run: >
131+
cmake
132+
-B ${{env.BUILD_DIR}}
133+
-DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
134+
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
135+
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
136+
-G Ninja
137+
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
138+
-DUMF_LINK_HWLOC_STATICALLY=${{matrix.static_hwloc}}
139+
-DUMF_FORMAT_CODE_STYLE=OFF
140+
-DUMF_DEVELOPER_MODE=ON
141+
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON
142+
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
143+
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON
144+
-DUMF_BUILD_CUDA_PROVIDER=ON
145+
-DUMF_TESTS_FAIL_ON_SKIP=ON
146+
147+
- name: Build UMF
148+
shell: cmd
149+
run: cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS%
150+
151+
- name: Run tests
152+
shell: cmd
153+
working-directory: ${{env.BUILD_DIR}}
154+
run: ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
155+
92156
# TODO fix #843
93157
#icx:
94158
# name: ICX

0 commit comments

Comments
 (0)