Skip to content

Update windows_qwindowkit.yml #2

Update windows_qwindowkit.yml

Update windows_qwindowkit.yml #2

name: Windows_QWindowKit
# 运行条件
on: push
jobs:
Windows_QWindowKit:
name: Build
runs-on: windows-2022
# 步骤
steps:
# 拉取代码
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: recursive
# 安装 Ninja
- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@master
with:
version: 1.10.2
# 编译 QWindowKit
- name: Compile QWindowKit
id: build-QWindowKit
shell: cmd
continue-on-error: true
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=D:\a\QWindowKit\build\install -DQWINDOWKIT_BUILD_STATIC=ON -DQWINDOWKIT_BUILD_QUICK=OFF -DQWINDOWKIT_BUILD_STYLESUPPORT=ON -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release -GNinja
# 尝试运行 qmcorecmd
- name: Run core cmd
shell: cmd
continue-on-error: false
run: |
cd /D build/_install/bin && qmcorecmd --help
# tag 查询 github-Release
# 上传 artifacts
- uses: actions/upload-artifact@v2
with:
name: QWindowKit
path: build/_install/bin
# tag 上传Release
- name: uploadRelease
if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: QWindowKit.zip
asset_name: QWindowKit.zip
tag: ${{ github.ref }}
overwrite: true