ci: update install-qt-action #29958
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: MSVC Portable Build Test | |
on: | |
push: | |
pull_request: | |
release: | |
types: [published] | |
schedule: | |
- cron: "0 0 * * 3" | |
workflow_dispatch: | |
jobs: | |
win-makepkg: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { icon: "🟦", sys: msvc, env: x86_64 } | |
name: 🚧${{ matrix.icon }} ${{ matrix.sys }} | makepkg | |
env: | |
MINGW_ARCH: ${{ matrix.sys }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: "⚙️ git config" | |
run: git config --global core.autocrlf input | |
shell: bash | |
- name: "🧰 Checkout" | |
uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
fetch-depth: 0 | |
- name: Prepare Rust toolchain | |
run: rustup show | |
- uses: Swatinem/rust-cache@v1 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install ninja-build tool | |
uses: seanmiddleditch/gha-setup-ninja@v3 | |
- name: Install MSVC compiler | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: 6.6.0 | |
arch: win64_msvc2019_64 | |
modules: "qt5compat qtimageformats" | |
- name: Build | |
run: | | |
cmake -S . -B ./out \ | |
-DVCPKG_TARGET_TRIPLET=x64-windows \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_INSTALL_PREFIX=./out/deploy | |
cmake --build ./out --parallel --config Release | |
shell: bash | |
- name: Deploy Dependencies | |
run: | | |
cmake --install ./out | |
- name: Export Package Name | |
run: echo "across_package_name=msvc-x86_64-across-dev-git-$(cat ./misc/VERSION).r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
- name: "📤 Upload artifact: package" | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ env.across_package_name }} | |
path: ./out/deploy/ |