🏗Build: Components updated. #524
Workflow file for this run
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: Windows Builds | |
on: | |
workflow_dispatch: | |
workflow_call: | |
push: | |
pull_request: | |
env: | |
QT_VERSION: "6.6.2" | |
MINGW_VERSION: "win64_msvc2019_64" | |
BUILD_TYPE: Release | |
artifact_retention_days: 5 | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Prepare git | |
run: |- | |
git config --global core.symlinks true | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- uses: ilammy/setup-nasm@v1 | |
with: | |
version: '2.16.01' | |
- name: install qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
aqtversion: '==2.1.*' | |
host: 'windows' | |
target: 'desktop' | |
modules: 'qtimageformats' | |
version: ${{ env.QT_VERSION }} | |
arch: ${{ env.MINGW_VERSION }} | |
dir: "${{github.workspace}}/qt" | |
install-deps: "true" | |
- | |
name: install graphviz | |
run: choco install graphviz | |
- | |
name: build 3rd-party sources [configuration] | |
working-directory: ${{github.workspace}}\.. | |
env: | |
CMAKE_PREFIX_PATH: ${{env.Qt6_Dir}} | |
run: | | |
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | |
cmake -DBUILD_DEPENDENCIES=ON -A x64 -G "Visual Studio 17 2022" -Bbuild ${{github.workspace}} -Wno-dev | |
- | |
name: build 3rd-party sources | |
working-directory: ${{github.workspace}}\.. | |
run: | | |
cmake --build build --config ${{env.BUILD_TYPE}} | |
- | |
name: build sources [configuration] | |
working-directory: ${{github.workspace}}\.. | |
env: | |
CMAKE_PREFIX_PATH: ${{env.Qt6_Dir}} | |
run: | | |
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | |
cmake -DBUILD_DEPENDENCIES=OFF -A x64 -G "Visual Studio 17 2022" -Bbuild ${{github.workspace}} -Wno-dev -DINSTALL_SYSTEM_RUNTIME=1 | |
- | |
name: build sources | |
working-directory: ${{github.workspace}}\.. | |
env: | |
VCINSTALLDIR: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\" | |
run: | | |
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | |
cmake --build build --config ${{env.BUILD_TYPE}} --target package | |
cd build | |
$artifact_path = pwd | |
echo "artifact_path=$artifact_path" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
$name = Get-Childitem -Filter *.zip -Name | |
echo "artifact_name_zip=$name" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
$name = Get-Childitem -Filter *.7z -Name | |
echo "artifact_name_7z=$name" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
$name = Get-Childitem -Filter *.msi -Name | |
echo "artifact_name_msi=$name" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
- name: archive artifacts [zip] | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{env.artifact_name_zip}} | |
path: | | |
${{env.artifact_path}}\${{env.artifact_name_zip}} | |
retention-days: ${{ inputs.artifact_retention_days }} | |
- name: archive artifacts [7z] | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{env.artifact_name_7z}} | |
path: | | |
${{env.artifact_path}}\${{env.artifact_name_7z}} | |
retention-days: ${{ inputs.artifact_retention_days }} | |
- name: archive artifacts [msi] | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{env.artifact_name_msi}} | |
path: | | |
${{env.artifact_path}}\${{env.artifact_name_msi}} | |
retention-days: ${{ inputs.artifact_retention_days }} | |
- name: release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
draft: true | |
files: | | |
${{env.artifact_path}}\${{env.artifact_name_zip}} | |
${{env.artifact_path}}\${{env.artifact_name_7z}} | |
${{env.artifact_path}}\${{env.artifact_name_msi}} |