From 472aa91c6b773267dae8c8eb8a01e7f9a5e54eaf Mon Sep 17 00:00:00 2001 From: Markus Schmidl Date: Thu, 5 Dec 2024 18:38:25 +0100 Subject: [PATCH] fix g++ install --- .github/workflows/cmake.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 11fa3aa4..5835cba6 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -274,7 +274,11 @@ jobs: steps: - name: Install compiler (if needed) - if: matrix.compiler != 'default' + if: startsWith(matrix.compiler, 'gcc') + run: | + sudo apt install ${{ matrix.cxxcompiler }} + - name: Install compiler (if needed) + if: startsWith(matrix.compiler, 'clang') run: | sudo apt install ${{ matrix.compiler }} - name: Setup Node.js @@ -318,7 +322,12 @@ jobs: retention-days: 1 path: build/src/FIRESTARTER - name: Uninstall compiler (if needed) - if: matrix.compiler != 'default' + if: startsWith(matrix.compiler, 'gcc') + run: | + sudo apt remove ${{ matrix.cxxcompiler }} + sudo apt autoremove + - name: Uninstall compiler (if needed) + if: startsWith(matrix.compiler, 'clang') run: | sudo apt remove ${{ matrix.compiler }} sudo apt autoremove