1
0

chore: update github action for my personal build.

- remove all unnecessary workflow. only keep cmake job in Windows workflow.
This commit is contained in:
2024-07-28 09:42:17 +08:00
parent 184209ece5
commit df5debb962
4 changed files with 37 additions and 33 deletions

View File

@@ -1,43 +1,47 @@
name: Windows CI name: Windows CI
on: [push, pull_request, workflow_dispatch] on:
workflow_dispatch:
push:
branches:
- master
jobs: jobs:
msvc-qmake-build: # msvc-qmake-build:
strategy: # strategy:
matrix: # matrix:
include: # include:
- qt_ver: '6.9.0' # - qt_ver: '6.9.0'
vs: '2022' # vs: '2022'
aqt_arch: 'win64_msvc2022_64' # aqt_arch: 'win64_msvc2022_64'
msvc_arch: 'x64' # msvc_arch: 'x64'
runs-on: windows-2022 # runs-on: windows-2022
steps: # steps:
- uses: actions/checkout@v4 # - uses: actions/checkout@v4
- name: Install Qt # - name: Install Qt
uses: jurplel/install-qt-action@v4 # uses: jurplel/install-qt-action@v4
with: # with:
arch: ${{ matrix.aqt_arch }} # arch: ${{ matrix.aqt_arch }}
version: ${{ matrix.qt_ver }} # version: ${{ matrix.qt_ver }}
modules: 'qtimageformats' # modules: 'qtimageformats'
- name: Build # - name: Build
shell: cmd # shell: cmd
run: | # run: |
set VS=${{ matrix.vs }} # set VS=${{ matrix.vs }}
set VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" # set VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
if not exist %VCVARS% set VCVARS="C:\Program Files\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" # if not exist %VCVARS% set VCVARS="C:\Program Files\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
call %VCVARS% ${{ matrix.msvc_arch }} # call %VCVARS% ${{ matrix.msvc_arch }}
qmake pineapple-pictures.pro # qmake pineapple-pictures.pro
nmake # nmake
nmake clean # nmake clean
windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler --no-system-dxc-compiler --skip-plugin-types tls,networkinformation release\ppic.exe # windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler --no-system-dxc-compiler --skip-plugin-types tls,networkinformation release\ppic.exe
- uses: actions/upload-artifact@v4 # - uses: actions/upload-artifact@v4
with: # with:
name: "windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-qmake-package" # name: "windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-qmake-package"
path: release/* # path: release/*
msvc-cmake-build: msvc-cmake-build: