Skip to content

Commit 7f2d361

Browse files
committed
build: simplify CI workflow by checking for g++ version and correcting CMake variable
1 parent 7dd822a commit 7f2d361

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/ci-build.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ jobs:
2727
- name: Set CXX environment variable
2828
run: |
2929
g++-13 --version
30-
if [ $? -ne 0 ]; then
31-
echo "Error: g++-13 is not installed."
32-
exit 1
33-
fi
30+
g++ --version
3431
echo "CXX=$(which g++-13)" >> $GITHUB_ENV
3532
3633
- name: Install Qt
@@ -42,7 +39,7 @@ jobs:
4239
arch: 'gcc_64'
4340

4441
- name: Configure CMake
45-
run: cmake -S . -B build -CMAKE_CXX_COMPILER=$(which g++-13) -DCI_BUILD=ON
42+
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=$(which g++-13) -DCI_BUILD=ON
4643

4744
- name: Build the project
4845
run: make -C build

0 commit comments

Comments
 (0)