Skip to content

Commit

Permalink
iwyu.yml: conditionally disable steps based on image [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Aug 2, 2023
1 parent 3ab9991 commit 4c7f0b5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/iwyu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ permissions:
jobs:
iwyu:

strategy:
matrix:
image: ["fedora:latest"] # "debian:unstable" / "archlinux:latest"

runs-on: ubuntu-22.04

container:
Expand All @@ -20,7 +24,7 @@ jobs:

# TODO: the necessary packages are excessive - mostly because of Qt - use a pre-built image
- name: Install missing software on debian/ubuntu
if: false
if: contains(matrix.image, 'debian')
run: |
apt-get update
apt-get install -y cmake g++ make libpcre3-dev
Expand All @@ -29,7 +33,7 @@ jobs:
ln -s ../x86_64-linux-gnu/qt5 /usr/include/qt
- name: Install missing software on archlinux
if: false
if: contains(matrix.image, 'archlinux')
run: |
set -x
pacman -Sy
Expand All @@ -46,6 +50,7 @@ jobs:
# TODO: the necessary packages are excessive - mostly because of Qt - use a pre-built image
- name: Install missing software on Fedora
if: contains(matrix.image, 'fedora')
run: |
dnf install -y cmake gcc-c++ qt5-qtbase-devel qt5-linguist qt5-qttools-devel qt5-qtcharts-devel pcre-devel
dnf install -y wget iwyu
Expand Down

0 comments on commit 4c7f0b5

Please sign in to comment.