mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 04:33:03 +03:00
Merge pull request #410 from Jihadist/master
Create github actions pipeline
This commit is contained in:
commit
710626c6c8
47
.github/workflows/cmake.yml
vendored
Normal file
47
.github/workflows/cmake.yml
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
name: CMake
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
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 }}-static-${{ matrix.static }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
ubuntu_version: [20.04, 22.04]
|
||||
qt_version: [5.12.12, 5.15.2, 6.3.0]
|
||||
static: [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: Configure CMake for Qt5
|
||||
if: "startsWith(matrix.qt_version, '5.')"
|
||||
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DLIMEREPORT_STATIC=${{ matrix.static }} -B "${{github.workspace}}/build"
|
||||
|
||||
|
||||
- name: Configure CMake for Qt6
|
||||
if: "startsWith(matrix.qt_version, '6.')"
|
||||
run: cmake -DUSE_QT6=ON -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DLIMEREPORT_STATIC=${{ matrix.static }} -B "${{github.workspace}}/build"
|
||||
|
||||
- name: Build
|
||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||
|
Loading…
Reference in New Issue
Block a user