Skip to content

Commit a229099

Browse files
committed
Don't need to remove the alternatives for gcc in github actions before installing. Also changing the if to not check string but rather if it was defined to skip install step
1 parent 9bbc821 commit a229099

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎.github/workflows/pipeline.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,15 @@ jobs:
3030
- uses: actions/checkout@v4
3131

3232
- name: Install clang
33-
if: ${{ matrix.llvm_version }} != ""
33+
if: ${{ matrix.llvm_version }}
3434
run: |
3535
wget https://apt.llvm.org/llvm.sh
3636
chmod +x llvm.sh
3737
sudo ./llvm.sh ${{ matrix.llvm_version }}
3838
3939
- name: Install gcc
40-
if: ${{ matrix.gcc_version }} != ""
40+
if: ${{ matrix.gcc_version }}
4141
run: |
42-
update-alternatives --remove-all gcc
43-
update-alternatives --remove-all g++
4442
add-apt-repository ppa:ubuntu-toolchain-r/test
4543
apt-get update
4644
apt-get install -y ${{ matrix.gcc_version }}

0 commit comments

Comments
 (0)