Skip to content

Commit

Permalink
Fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
redtide committed Apr 24, 2024
1 parent e3125e6 commit ab0995e
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
qt_version: [5, 6]
config:
- { name: "GCC", cc: gcc, cxx: g++ }
- { name: "clang", cc: clang, cxx: clang++ }
Expand All @@ -37,24 +38,18 @@ jobs:
repository: qtilities/qtilitools
path: qtilitools

- name: Python Setup
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Update Packages
run: sudo apt-get update

- name: Install Dependencies
run: |
packages=(
qtbase5-dev
qttools5-dev
)
sudo apt-get install ${packages[@]}
pip3 install xmlschema
sudo apt-get install doxygen \
${{ matrix.qt_version == 5
&& 'qtbase5-dev qttools5-dev'
|| 'qt6-base-dev libgl1-mesa-dev qt6-l10n-tools qt6-tools-dev qt6-tools-dev-tools'
}}
- name: Build and install Qtilitools
- name: Install Qtilitools
working-directory: ${{ github.workspace }}/qtilitools
run: |
options=(
Expand All @@ -70,9 +65,10 @@ jobs:
options=(
-D CMAKE_INSTALL_PREFIX="/usr"
-D CMAKE_BUILD_TYPE=${{ env.build_type }}
-D PROJECT_QT_VERSION=${{ matrix.qt_version }}
-B build
)
cmake ${options[@]}
- name: Build
run: cmake --build build --config ${{ env.build_type }}
run: cmake --build build --verbose

0 comments on commit ab0995e

Please sign in to comment.