Add checkbox to ignore rule_configs #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows Qt6 Release | |
on: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- 'master' | |
defaults: | |
run: | |
shell: cmd | |
env: | |
SOURCE_DIR: ${{ github.workspace }} | |
QT_VERSION: 6.5.0 | |
ARTIFACT: cbapi-qt-demo.zip | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Get all tags for correct version determination | |
working-directory: ${{ github.workspace }} | |
run: | | |
git fetch --all --tags -f | |
- name: Install Qt | |
uses: jurplel/[email protected] | |
with: | |
version: ${{ env.QT_VERSION }} | |
dir: ${{ runner.temp }} | |
modules: 'qt5compat' | |
setup-python: false | |
- name: Download JOM | |
uses: suisei-cn/[email protected] | |
with: | |
url: http://download.qt.io/official_releases/jom/jom.zip | |
target: ${{ runner.temp }}\ | |
- name: Unzip JOM | |
working-directory: ${{ runner.temp }} | |
run: | | |
7z x jom.zip -ojom | |
- name: Create build directory | |
run: mkdir ${{ runner.temp }}\build | |
- name: Set up Visual Studio shell | |
uses: egor-tensin/vs-shell@v2 | |
with: | |
arch: x64 | |
- name: Build | |
working-directory: ${{ runner.temp }}\build | |
run: | | |
qmake -r ${{ env.SOURCE_DIR }}\cbapi-qt-demo.pro | |
${{ runner.temp }}\jom\jom -j2 | |
cd release | |
windeployqt --qmldir ${{ env.SOURCE_DIR }} cbapi-qt-demo.exe --pdb --release --compiler-runtime | |
copy C:\Windows\System32\concrt140.dll . | |
copy C:\Windows\System32\vccorlib140.dll . | |
copy C:\Windows\System32\msvcp140.dll . | |
copy C:\Windows\System32\vcruntime140.dll . | |
- name: Clean up | |
working-directory: ${{ runner.temp }}\build\release | |
run: | | |
del *.obj | |
del moc_* | |
del *.cpp | |
- name: Zip build | |
working-directory: ${{ runner.temp }} | |
run: | | |
7z a cbapi-qt-demo.zip ${{ runner.temp }}\build\release\* -r | |
- name: Save build artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: ${{ env.ARTIFACT }} | |
path: ${{ runner.temp }}\${{ env.ARTIFACT }} | |