Skip to content

Commit 7014dcf

Browse files
committed
ci: llvm: step by step, build Zlib
1 parent 6d5f0c4 commit 7014dcf

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ on:
2020
- ".github/workflows/**"
2121
- "!memcheck.cmake"
2222
- "!coverage.cmake"
23+
workflow_dispatch:
24+
25+
# avoid wasted runs
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.ref }}
28+
cancel-in-progress: true
2329

2430

2531
jobs:
@@ -85,8 +91,6 @@ jobs:
8591
strategy:
8692
matrix:
8793
llvm-version: [20]
88-
cpp: [true, false]
89-
shared: [false]
9094

9195
env:
9296
CC: clang-${{ matrix.llvm-version }}
@@ -102,10 +106,18 @@ jobs:
102106
sudo apt-get update
103107
104108
- name: install Flang
105-
run: sudo apt install --no-install-recommends clang-${{ matrix.llvm-version }} flang-${{ matrix.llvm-version }}
109+
run: sudo apt install --no-install-recommends ninja-build clang-${{ matrix.llvm-version }} flang-${{ matrix.llvm-version }}
106110

107111
- uses: actions/checkout@v4
108-
- uses: ./.github/workflows/composite-unix
112+
113+
- name: configure Cmake
114+
run: cmake --preset multi -Dbuild_zlib:BOOL=true
115+
116+
- name: Build / test Debug
117+
run: cmake --workflow --preset debug
118+
119+
- name: Build / test Release
120+
run: cmake --workflow --preset release
109121

110122

111123

cmake/hdf5.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ file(READ ${CMAKE_CURRENT_LIST_DIR}/libraries.json json)
3838
# --- Zlib
3939
if(build_zlib)
4040
set(zlib_dep DEPENDS ZLIB)
41-
if(TARGET ZLIB::ZLIB)
42-
add_custom_target(ZLIB)
43-
else()
44-
include(${CMAKE_CURRENT_LIST_DIR}/zlib.cmake)
45-
endif()
41+
if(TARGET ZLIB::ZLIB)
42+
add_custom_target(ZLIB)
43+
else()
44+
include(${CMAKE_CURRENT_LIST_DIR}/zlib.cmake)
45+
endif()
4646
else()
4747
set(zlib_dep)
4848
endif()

0 commit comments

Comments
 (0)