Skip to content

Commit 8e44d05

Browse files
authored
Update runners (#374)
1 parent 8f532cd commit 8e44d05

18 files changed

Lines changed: 70 additions & 42 deletions

File tree

.github/config/macos-12-clang-14/conan/profiles/default renamed to .github/config/macos-13-clang-14/conan/profiles/default

File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[settings]
2+
arch=x86_64
3+
build_type=Release
4+
compiler=apple-clang
5+
compiler.version=14
6+
compiler.cppstd=17
7+
compiler.libcxx=libc++
8+
os=Macos

.github/config/ubuntu-22.04-clang-15/conan/profiles/default renamed to .github/config/ubuntu-24.04-clang-16/conan/profiles/default

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
arch=x86_64
33
build_type=Release
44
compiler=clang
5-
compiler.version=15
5+
compiler.version=16
66
compiler.cppstd=17
77
compiler.libcxx=libstdc++11
88
os=Linux
99

1010
[conf]
11-
tools.build:compiler_executables={'c': 'clang-15', 'cpp': 'clang++-15'}
11+
tools.build:compiler_executables={'c': 'clang-16', 'cpp': 'clang++-16'}

.github/config/ubuntu-22.04-gcc-12/conan/profiles/default renamed to .github/config/ubuntu-24.04-gcc-12/conan/profiles/default

File renamed without changes.

.github/workflows/build_test.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
config:
25-
- { os: ubuntu-22.04, compiler: clang-15 }
26-
- { os: ubuntu-22.04, compiler: gcc-12 }
27-
- { os: macos-12, compiler: clang-14 }
25+
- { os: ubuntu-24.04, compiler: clang-16 }
26+
- { os: ubuntu-24.04, compiler: gcc-12 }
27+
- { os: macos-13, compiler: clang-14 }
28+
- { os: macos-14, compiler: clang-14 }
2829
- { os: windows-2022, compiler: msvc-1939 }
2930
steps:
3031
- name: checkout
@@ -100,7 +101,7 @@ jobs:
100101
fail-fast: false
101102
matrix:
102103
config:
103-
- { os: ubuntu-22.04, compiler: clang-15 }
104+
- { os: ubuntu-24.04, compiler: clang-16 }
104105
steps:
105106
- name: checkout
106107
uses: actions/checkout@v4
@@ -157,8 +158,8 @@ jobs:
157158
fail-fast: false
158159
matrix:
159160
config:
160-
- { os: ubuntu-22.04, compiler: clang-15 }
161-
- { os: macos-12, compiler: clang-14 }
161+
- { os: ubuntu-24.04, compiler: clang-16 }
162+
- { os: macos-14, compiler: clang-14 }
162163
steps:
163164
- name: checkout
164165
uses: actions/checkout@v4
@@ -218,9 +219,10 @@ jobs:
218219
fail-fast: false
219220
matrix:
220221
config:
221-
- { os: ubuntu-22.04, compiler: clang-15 }
222-
- { os: ubuntu-22.04, compiler: gcc-12 }
223-
- { os: macos-12, compiler: clang-14 }
222+
- { os: ubuntu-24.04, compiler: clang-16 }
223+
- { os: ubuntu-24.04, compiler: gcc-12 }
224+
- { os: macos-13, compiler: clang-14 }
225+
- { os: macos-14, compiler: clang-14 }
224226
- { os: windows-2022, compiler: msvc-1939 }
225227
steps:
226228
- name: checkout

.github/workflows/docker.yml

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

99
jobs:
1010
test_image:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212
permissions:
1313
packages: write
1414
steps:

.github/workflows/format.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,12 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212
steps:
1313
- name: checkout
1414
uses: actions/checkout@v4
1515

16-
- run: clang-format-15 --version
17-
1816
- name: apply clang-format
19-
run: |
20-
FILES=$( find . -type f \( -iname \*.h -o -iname \*.cpp \) )
21-
clang-format-15 --style=file -i $FILES
17+
run: CLANG_FORMAT=clang-format-18 ./scripts/format
2218

2319
- run: git diff --exit-code --name-only

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
config:
14-
- { os: ubuntu-22.04, compiler: clang-15 }
14+
- { os: ubuntu-24.04, compiler: clang-15 }
1515
steps:
1616
- name: checkout
1717
uses: actions/checkout@v4

.github/workflows/tidy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
config:
20-
- { os: ubuntu-22.04, compiler: clang-15 }
20+
- { os: ubuntu-24.04, compiler: clang-16 }
2121
steps:
2222
- name: checkout
2323
uses: actions/checkout@v4

scripts/format

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
CLANG_FORMAT=${CLANG_FORMAT:-clang-format}
4+
5+
echo "Running clang-format on all .hpp and .cpp files in the project"
6+
echo "Using clang-format: ${CLANG_FORMAT}"
7+
8+
${CLANG_FORMAT} --version
9+
10+
function format_file() {
11+
echo "Formatting $1"
12+
${CLANG_FORMAT} --style=file -i $1
13+
}
14+
function format_folder() {
15+
export -f format_file
16+
export CLANG_FORMAT
17+
find $1 -type f \( -iname \*.hpp -o -iname \*.cpp \) -exec bash -c 'format_file "${1}"' -- {} \;
18+
}
19+
20+
format_folder src
21+
format_folder cli
22+
format_folder test/src

0 commit comments

Comments
 (0)