drop dependabot, it is useless here #110
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: CI - Windows | |
on: [pull_request, push] | |
permissions: | |
actions: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: ${{ github.head_ref != '' }} | |
jobs: | |
ci: | |
name: Build | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
submodules: recursive | |
- name: Setup devcmd | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Install build tools | |
run: | | |
"C:\Program Files (x86)\WiX Toolset v3.14\bin" | Out-File -FilePath $env:GITHUB_PATH -Append | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v4 | |
with: | |
version: "6.8.*" | |
arch: 'win64_msvc2022_64' | |
archives: qtbase qtsvg qttools qttranslations | |
modules: qtimageformats qtmultimedia | |
- name: Build application | |
run: | | |
cmake ` | |
-B build ` | |
-G Ninja ` | |
-D CMAKE_BUILD_TYPE=Release | |
cmake --build build --target update_translations | |
cmake --build build | |
- name: Prepare build artifacts | |
run: | | |
cmake --build build --target win_installer | |
mkdir upload | |
move build\dist\msi\digital_clock_5-x64.msi upload | |
move build\installer_files DigitalClock5 | |
New-Item -ItemType File -Path DigitalClock5 -Name portable.txt | |
attrib +h DigitalClock5\portable.txt | |
7z a upload\digital_clock_5-win64.zip DigitalClock5 | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: DigitalClock5 Windows Nightly | |
path: upload |