Skip to content

Commit 8dd3052

Browse files
committed
consolidate CI and json
1 parent 824366d commit 8dd3052

3 files changed

Lines changed: 39 additions & 76 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: ci
22

33
env:
4-
CTEST_NO_TESTS_ACTION: error
5-
CTEST_PARALLEL_LEVEL: 0
4+
HOMEBREW_NO_INSTALL_CLEANUP: 1
65

76
on:
87
push:
@@ -123,33 +122,34 @@ jobs:
123122
- run: ctest -S memcheck.cmake -VV -E "sleep|string_array|string_view|binding_derived"
124123

125124

126-
linux-flang:
127-
runs-on: ubuntu-latest
128-
timeout-minutes: 15
125+
# just saving CI time
126+
# linux-flang:
127+
# runs-on: ubuntu-latest
128+
# timeout-minutes: 15
129129

130-
strategy:
131-
matrix:
132-
llvm-version: [21]
130+
# strategy:
131+
# matrix:
132+
# llvm-version: [21]
133133

134-
steps:
135-
- *checkout
134+
# steps:
135+
# - *checkout
136136

137-
- name: Apt LLVM
138-
run: |
139-
wget https://apt.llvm.org/llvm.sh
140-
chmod +x llvm.sh
141-
sudo ./llvm.sh ${{ matrix.llvm-version }}
142-
sudo apt-get update
137+
# - name: Apt LLVM
138+
# run: |
139+
# wget https://apt.llvm.org/llvm.sh
140+
# chmod +x llvm.sh
141+
# sudo ./llvm.sh ${{ matrix.llvm-version }}
142+
# sudo apt-get update
143143

144-
- name: install Flang
145-
run: sudo apt install --no-install-recommends clang-${{ matrix.llvm-version }} flang-${{ matrix.llvm-version }}
146-
# MUST specify version here or default old Clang used despite LLVM apt docs
144+
# - name: install Flang
145+
# run: sudo apt install --no-install-recommends clang-${{ matrix.llvm-version }} flang-${{ matrix.llvm-version }}
146+
# # MUST specify version here or default old Clang used despite LLVM apt docs
147147

148-
- uses: ./.github/workflows/composite-unix
149-
env:
150-
CC: clang-${{ matrix.llvm-version }}
151-
CXX: clang++-${{ matrix.llvm-version }}
152-
FC: flang-${{ matrix.llvm-version }}
148+
# - uses: ./.github/workflows/composite-unix
149+
# env:
150+
# CC: clang-${{ matrix.llvm-version }}
151+
# CXX: clang++-${{ matrix.llvm-version }}
152+
# FC: flang-${{ matrix.llvm-version }}
153153

154154

155155
mac:
@@ -200,7 +200,7 @@ jobs:
200200

201201
- *checkout
202202

203-
- run: cmake --workflow ninja
203+
- run: cmake --workflow default
204204

205205
- name: upload CMakeConfigureLog.yaml
206206
if: failure() && hashFiles('build/CMakeFiles/CMakeConfigureLog.yaml') != ''

.github/workflows/composite-unix/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runs:
88
steps:
99

1010
- name: Ninja build and test
11-
run: cmake --workflow ninja --fresh
11+
run: cmake --workflow default --fresh
1212
shell: bash
1313

1414
- name: GNU Make build and test

CMakePresets.json

Lines changed: 13 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55
{
66
"name": "default",
77
"binaryDir": "build",
8+
"generator": "Ninja",
89
"cacheVariables": {
910
"CMAKE_BUILD_TYPE": "Release",
1011
"CMAKE_COMPILE_WARNING_AS_ERROR": true,
1112
"CMAKE_LINK_WARNING_AS_ERROR": true
1213
}
1314
},
14-
{ "name": "ninja", "inherits": "default",
15-
"generator": "Ninja"
16-
},
1715
{ "name": "gmake", "inherits": "default",
1816
"generator": "Unix Makefiles"
1917
},
@@ -37,13 +35,12 @@
3735
}
3836
],
3937
"buildPresets": [
40-
{ "name": "default", "configurePreset": "default", "configuration": "Release", "jobs": 0 },
38+
{ "name": "default", "configurePreset": "default", "configuration": "Release"},
4139
{ "name": "build", "inherits": "default", "configurePreset": "build" },
4240
{ "name": "msvc", "inherits": "default", "configurePreset": "msvc" },
4341
{ "name": "debug", "inherits": "default", "configurePreset": "debug", "configuration": "Debug" },
4442
{ "name": "reldebug", "inherits": "default", "configurePreset": "reldebug", "configuration": "RelWithDebInfo" },
45-
{ "name": "ninja", "configurePreset": "ninja" },
46-
{ "name": "gmake", "inherits": "default", "configurePreset": "gmake" }
43+
{ "name": "gmake", "inherits": "default", "configurePreset": "gmake", "jobs": 4 }
4744
],
4845
"testPresets": [
4946
{
@@ -73,62 +70,28 @@
7370
"configurePreset": "debug",
7471
"configuration": "Debug"
7572
},
76-
{ "name": "ninja", "configurePreset": "ninja" },
7773
{ "name": "gmake", "configurePreset": "gmake" }
7874
],
7975
"workflowPresets": [
80-
{
81-
"name": "default",
82-
"displayName": "build and test",
83-
"steps": [
76+
{ "name": "default", "displayName": "build and test", "steps": [
8477
{ "type": "configure", "name": "default" },
8578
{ "type": "build", "name": "default" },
86-
{ "type": "test", "name": "default" }
87-
]
88-
},
89-
{
90-
"name": "build",
91-
"displayName": "build only",
92-
"steps": [
79+
{ "type": "test", "name": "default" } ] },
80+
{ "name": "build", "displayName": "build only", "steps": [
9381
{ "type": "configure", "name": "build" },
94-
{ "type": "build", "name": "build" }
95-
]
96-
},
97-
{
98-
"name": "debug",
99-
"displayName": "Debug build and test",
100-
"steps": [
82+
{ "type": "build", "name": "build" } ] },
83+
{ "name": "debug", "displayName": "Debug build and test", "steps": [
10184
{ "type": "configure", "name": "debug" },
10285
{ "type": "build", "name": "debug" },
103-
{ "type": "test", "name": "debug" }
104-
]
105-
},
106-
{
107-
"name": "msvc",
108-
"displayName": "MSVC build and test",
109-
"steps": [
86+
{ "type": "test", "name": "debug" } ] },
87+
{ "name": "msvc", "displayName": "MSVC build and test", "steps": [
11088
{ "type": "configure", "name": "msvc" },
11189
{ "type": "build", "name": "msvc" },
112-
{ "type": "test", "name": "msvc" }
113-
]
114-
},
115-
{
116-
"name": "ninja",
117-
"displayName": "Ninja build and test",
118-
"steps": [
119-
{ "type": "configure", "name": "ninja" },
120-
{ "type": "build", "name": "ninja" },
121-
{ "type": "test", "name": "ninja" }
122-
]
123-
},
124-
{
125-
"name": "gmake",
126-
"displayName": "GNU Make build and test",
127-
"steps": [
90+
{ "type": "test", "name": "msvc" } ] },
91+
{ "name": "gmake", "displayName": "GNU Make build and test", "steps": [
12892
{ "type": "configure", "name": "gmake" },
12993
{ "type": "build", "name": "gmake" },
130-
{ "type": "test", "name": "gmake" }
131-
]
94+
{ "type": "test", "name": "gmake" } ]
13295
}
13396
]
13497
}

0 commit comments

Comments
 (0)