This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
Update README.md. #89
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 Build | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: '*' | |
workflow_dispatch: | |
jobs: | |
build-windows: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache Qt | |
id: cache-qt | |
uses: actions/cache@v1 # not v2! | |
with: | |
path: ../Qt | |
key: ${{ runner.os }}-qtcache | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v2 | |
with: | |
arch: win64_msvc2019_64 | |
setup-python: false | |
cached: ${{ steps.cache-qt.outputs.cache-hit }} | |
- name: Install Vulkan SDK | |
uses: humbletim/[email protected] | |
with: | |
vulkan-query-version: 1.2.198.1 | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- uses: actions/cache@v3 | |
id: cache-vcpkg-installed | |
with: | |
path: D:\a\Cascade\Cascade\vcpkg_installed | |
key: ${{ runner.os }}-vcpkg-${{ hashFiles('vcpkg.json') }} | |
- name: Install vcpkg packages | |
if: steps.cache-vcpkg-installed.outputs.cache-hit != 'true' | |
run: | | |
git clone https://github.com/microsoft/vcpkg | |
.\vcpkg\bootstrap-vcpkg.bat | |
.\vcpkg\vcpkg --feature-flags="versions" --triplet=x64-windows install | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
qmake ../Cascade.pro | |
nmake | |