Skip to content

Commit da6c39e

Browse files
authored
iwyu.yml: actually disable archlinux step [skip ci] (#5287)
I accidentally left this own when I rolled back a previous attempt to implement the conditional checks.
1 parent faf8047 commit da6c39e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/iwyu.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ permissions:
1010
jobs:
1111
iwyu:
1212

13+
strategy:
14+
matrix:
15+
image: ["fedora:latest"] # "debian:unstable" / "archlinux:latest"
16+
1317
runs-on: ubuntu-22.04
1418

1519
container:
@@ -20,7 +24,7 @@ jobs:
2024

2125
# TODO: the necessary packages are excessive - mostly because of Qt - use a pre-built image
2226
- name: Install missing software on debian/ubuntu
23-
if: false
27+
if: contains(matrix.image, 'debian')
2428
run: |
2529
apt-get update
2630
apt-get install -y cmake g++ make libpcre3-dev
@@ -29,12 +33,13 @@ jobs:
2933
ln -s ../x86_64-linux-gnu/qt5 /usr/include/qt
3034
3135
- name: Install missing software on archlinux
36+
if: contains(matrix.image, 'archlinux')
3237
run: |
3338
set -x
3439
pacman -Sy
3540
pacman -S cmake make gcc qt5-base qt5-tools qt5-charts pcre wget --noconfirm
3641
pacman-key --init
37-
pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
42+
pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
3843
pacman-key --lsign-key 3056513887B78AEB
3944
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' --noconfirm
4045
echo "[chaotic-aur]" >> /etc/pacman.conf
@@ -45,6 +50,7 @@ jobs:
4550
4651
# TODO: the necessary packages are excessive - mostly because of Qt - use a pre-built image
4752
- name: Install missing software on Fedora
53+
if: contains(matrix.image, 'fedora')
4854
run: |
4955
dnf install -y cmake gcc-c++ qt5-qtbase-devel qt5-linguist qt5-qttools-devel qt5-qtcharts-devel pcre-devel
5056
dnf install -y wget iwyu

0 commit comments

Comments
 (0)