Skip to content

Commit

Permalink
refactor(ci): replace CMake commands with qt-cmake.bat in build workf…
Browse files Browse the repository at this point in the history
…low for improved cross-compilation
  • Loading branch information
chenx-dust committed Jan 20, 2025
1 parent 888e231 commit cf56ad7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ jobs:
cache-key-prefix: 'install-qt-action'
set-env: 'false'

- name: Set up cross-compilation environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64_arm64

- name: Configure
env:
NIGHTLY_BUILD: ${{ inputs.nightly || github.event_name != 'release' }}
Expand All @@ -123,15 +118,15 @@ jobs:
run: |
mkdir build
if ( [bool]::Parse("${{ env.NIGHTLY_BUILD }}") ) {
cmake -D NIGHTLY_BUILD=ON -D GIT_HASH=$(git rev-parse --short=7 HEAD) -D QT_HOST_PATH="${{ env.QT_HOST_PATH }}" -S . -B build
qt-cmake.bat -D NIGHTLY_BUILD=ON -D GIT_HASH=$(git rev-parse --short=7 HEAD) -D QT_HOST_PATH="${{ env.QT_HOST_PATH }}" -S . -B build
} else {
$VER = "${{ env.RELEASE_VERSION }}".substring(1)
cmake -D NIGHTLY_BUILD=OFF -D REL_VER=$VER -D QT_HOST_PATH="${{ env.QT_HOST_PATH }}" -S . -B build
qt-cmake.bat -D NIGHTLY_BUILD=OFF -D REL_VER=$VER -D QT_HOST_PATH="${{ env.QT_HOST_PATH }}" -S . -B build
}
- name: Build
run: |
cmake --build build --target ${{ env.TARGET_NAME }} --config Release --parallel $(nproc)
qt-cmake.bat --build build --target ${{ env.TARGET_NAME }} --config Release --parallel $(nproc)
- name: Download and copy files
env:
Expand Down

0 comments on commit cf56ad7

Please sign in to comment.