File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 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
2531jobs :
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
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ file(READ ${CMAKE_CURRENT_LIST_DIR}/libraries.json json)
3838# --- Zlib
3939if (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 ()
4646else ()
4747 set (zlib_dep)
4848endif ()
You can’t perform that action at this time.
0 commit comments