Skip to content

Update Qaterial

Update Qaterial #16

name: 👷 Windows CI
on:
push:
branches:
- master
- ci
release:
types:
- created
pull_request:
branches:
- master
jobs:
BuildWindows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
qt-version: ['5.15.1']
build-type: ['Release']
steps:
-
uses: actions/checkout@v2
-
name: Cache Qt
id: cache-qt-windows
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/Qt-${{ runner.os }}-${{ matrix.qt-version }}
key: ${{ runner.os }}-QtCache-${{ matrix.qt-version }}-modules
-
name: ⬆️ Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{ matrix.qt-version }}
dir: ${{ github.workspace }}/Qt-${{ runner.os }}-${{ matrix.qt-version }}
cached: ${{ steps.cache-qt-windows.outputs.cache-hit }}
-
name: 🔥 Delete Qt built-in styles
run: |
rm -rf ${Qt5_Dir}/qml/QtQuick/Controls.2/designer
rm -rf ${Qt5_Dir}/qml/QtQuick/Controls.2/Fusion
rm -rf ${Qt5_Dir}/qml/QtQuick/Controls.2/Imagine
rm -rf ${Qt5_Dir}/qml/QtQuick/Controls.2/Universal
shell: bash
-
name: 🔧 Configure
run: |
mkdir -p build
cmake -DQATERIALGALLERY_IGNORE_ENV=ON -DCMAKE_BUILD_TYPE="${{ matrix.build-type }}" -B build -S .
shell: bash
-
name: 🔨 Build Qaterial
run: cmake --build build --target "Qaterial" --config "${{ matrix.build-type }}" -j
-
name: 🔨 Build QaterialGallery
run: cmake --build build --target "QaterialGallery" --config "${{ matrix.build-type }}" -j
-
name: 🔨 Build QaterialGallery Installer
run: cmake --build build --target "QaterialGalleryInstallerX64" --config "${{ matrix.build-type }}" -j
-
name: 📦 Upload QaterialGallery Installer
uses: actions/upload-artifact@v2
with:
name: QaterialGalleryInstallerX64${{ matrix.build-type }}.exe
path: build/QaterialGalleryInstallerX64${{ matrix.build-type }}.exe
-
name: 🚀 Upload Release Asset
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/QaterialGalleryInstallerX64${{ matrix.build-type }}.exe
asset_name: QaterialGalleryInstallerX64${{ matrix.build-type }}.exe
asset_content_type: application/vnd.microsoft.portable-executable