chore: update github action for my personal build.
- remove all unnecessary workflow. only keep cmake job in Windows workflow.
This commit is contained in:
70
.github/workflows/windows.yml
vendored
70
.github/workflows/windows.yml
vendored
@@ -1,43 +1,47 @@
|
||||
name: Windows CI
|
||||
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
msvc-qmake-build:
|
||||
# msvc-qmake-build:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- qt_ver: '6.9.0'
|
||||
vs: '2022'
|
||||
aqt_arch: 'win64_msvc2022_64'
|
||||
msvc_arch: 'x64'
|
||||
# strategy:
|
||||
# matrix:
|
||||
# include:
|
||||
# - qt_ver: '6.9.0'
|
||||
# vs: '2022'
|
||||
# aqt_arch: 'win64_msvc2022_64'
|
||||
# msvc_arch: 'x64'
|
||||
|
||||
runs-on: windows-2022
|
||||
# runs-on: windows-2022
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v4
|
||||
with:
|
||||
arch: ${{ matrix.aqt_arch }}
|
||||
version: ${{ matrix.qt_ver }}
|
||||
modules: 'qtimageformats'
|
||||
- name: Build
|
||||
shell: cmd
|
||||
run: |
|
||||
set VS=${{ matrix.vs }}
|
||||
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"
|
||||
call %VCVARS% ${{ matrix.msvc_arch }}
|
||||
qmake pineapple-pictures.pro
|
||||
nmake
|
||||
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
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-qmake-package"
|
||||
path: release/*
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - name: Install Qt
|
||||
# uses: jurplel/install-qt-action@v4
|
||||
# with:
|
||||
# arch: ${{ matrix.aqt_arch }}
|
||||
# version: ${{ matrix.qt_ver }}
|
||||
# modules: 'qtimageformats'
|
||||
# - name: Build
|
||||
# shell: cmd
|
||||
# run: |
|
||||
# set VS=${{ matrix.vs }}
|
||||
# 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"
|
||||
# call %VCVARS% ${{ matrix.msvc_arch }}
|
||||
# qmake pineapple-pictures.pro
|
||||
# nmake
|
||||
# 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
|
||||
# - uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: "windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-qmake-package"
|
||||
# path: release/*
|
||||
|
||||
msvc-cmake-build:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user