1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-16 04:42:53 +08:00

Add github workflow for cmake

This commit is contained in:
Jihadist 2022-10-17 13:11:53 +03:00 committed by Daniel Nicoletti
parent b5585decd4
commit e501c03198

65
.github/workflows/cmake-ubuntu.yml vendored Normal file
View File

@ -0,0 +1,65 @@
name: CMake
on:
push:
paths-ignore:
- 'Example.md'
- 'HowToSetProject.ko.md'
- 'HowToSetProject.md'
- 'README.ko.md'
- 'README.md'
- 'TestEnv.md'
- 'ToTest.md'
- 'ToUpgrade.md'
- 'Vision.md'
- 'LICENSE'
pull_request:
paths-ignore:
- 'Example.md'
- 'HowToSetProject.ko.md'
- 'HowToSetProject.md'
- 'README.ko.md'
- 'README.md'
- 'TestEnv.md'
- 'ToTest.md'
- 'ToUpgrade.md'
- 'Vision.md'
- 'LICENSE'
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-${{ matrix.ubuntu_version }}
name: Ubuntu-${{ matrix.ubuntu_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
ubuntu_version: [20.04, 22.04]
qt_version: [5.12.12, 5.15.2, 6.4.0]
shared: [ON, OFF]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
cache: 'true'
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ matrix.qt_version }}
dir: ${{ github.workspace }}/Qt
- name: Install packages
run: sudo apt-get install -y libxkbcommon-dev libxcb-xkb-dev
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DBUILD_SHARED_LIBS=${{ matrix.shared }} -B "${{github.workspace}}/build" -S "QXlsx"
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}