From e542613acfcc3d4ed59f5eeaf12c540e36654323 Mon Sep 17 00:00:00 2001 From: Cyano Hao Date: Fri, 22 Dec 2023 18:03:55 +0800 Subject: [PATCH] Add CI build for MSVC x64 (#166) * add CI build for MSVC x64 * remove vcredist in CI build * add CI build for MSVC ARM64EC --- .github/workflows/build.yml | 74 +++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index efc3e5d8..16da1255 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,6 +96,80 @@ jobs: name: Windows MSYS2 MINGW32 path: pkg/ + windows_msvc_x64: + name: Windows MSVC x64 + runs-on: windows-2019 + + steps: + - uses: actions/checkout@v2 + + - name: Setup + uses: jurplel/install-qt-action@v3 + with: + version: '5.15.2' + host: windows + target: desktop + arch: win64_msvc2019_64 + archives: qtbase qtsvg qttools + tools: tools_qtcreator,qt.tools.qtcreator + + - name: Build + run: | + $JOM = "${Env:RUNNER_WORKSPACE}/Qt/Tools/QtCreator/bin/jom/jom.exe" + $VS_INSTALL_PATH = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" + Import-Module "$VS_INSTALL_PATH\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" + Enter-VsDevShell -VsInstallPath "$VS_INSTALL_PATH" -SkipAutomaticLocation -DevCmdArguments -arch=amd64 + mkdir build && pushd build + qmake PREFIX=${Env:GITHUB_WORKSPACE}/pkg ${Env:GITHUB_WORKSPACE}/Red_Panda_CPP.pro + & $JOM "-j${Env:NUMBER_OF_PROCESSORS}" + & $JOM install + windeployqt ${Env:GITHUB_WORKSPACE}/pkg/RedPandaIDE.exe + rm ${Env:GITHUB_WORKSPACE}/pkg/vc_redist.x64.exe + popd + + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: Windows MSVC x64 + path: pkg/ + + windows_msvc_arm64ec: + name: Windows MSVC ARM64EC + runs-on: windows-2019 + + steps: + - uses: actions/checkout@v2 + + - name: Setup + uses: jurplel/install-qt-action@v3 + with: + version: '5.15.2' + host: windows + target: desktop + arch: win64_msvc2019_64 + archives: qtbase qtsvg qttools + tools: tools_qtcreator,qt.tools.qtcreator + + - name: Build + run: | + $JOM = "${Env:RUNNER_WORKSPACE}/Qt/Tools/QtCreator/bin/jom/jom.exe" + $VS_INSTALL_PATH = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" + Import-Module "$VS_INSTALL_PATH\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" + Enter-VsDevShell -VsInstallPath "$VS_INSTALL_PATH" -SkipAutomaticLocation -DevCmdArguments "-arch=arm64 -host_arch=amd64" + mkdir build && pushd build + qmake QMAKE_CXXFLAGS="/arm64EC" QMAKE_LFLAGS="/MACHINE:ARM64EC" QMAKE_LIBFLAGS="/MACHINE:ARM64X" PREFIX=${Env:GITHUB_WORKSPACE}/pkg ${Env:GITHUB_WORKSPACE}/Red_Panda_CPP.pro + & $JOM "-j${Env:NUMBER_OF_PROCESSORS}" + & $JOM install + windeployqt ${Env:GITHUB_WORKSPACE}/pkg/RedPandaIDE.exe + rm ${Env:GITHUB_WORKSPACE}/pkg/vc_redist.x64.exe + popd + + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: Windows MSVC ARM64EC (do not use) + path: pkg/ + deb_oldest_lts: name: Deb on oldest LTS (Debian 10) runs-on: ubuntu-latest