Skip to content

V2024.6.4

V2024.6.4 #21

Workflow file for this run

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [ "review_requested", "ready_for_review" ]
workflow_dispatch:
name: Windows
permissions:
id-token: write
contents: read
env:
GITHUB_ACTIONS: true
VCPKG_ROOT: ${{github.workspace}}/vcpkg
jobs:
build:
name: "Build on x64"
runs-on: windows-latest
if: ${{ github.event.pull_request.user.login != 'weblate' }}
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
submodules: recursive
- name: "Setup Environment"
run: mkdir build
- name: "Vcpkg"
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
pkgs: libnick libjpeg-turbo boost-gil
triplet: x64-windows
revision: 90ff15472a7c9f858717667b66403344e73cfb9c
token: ${{ secrets.GITHUB_TOKEN }}
github-binarycache: true
- name: "Build"
working-directory: ${{github.workspace}}/build
run: |
cmake -G "Visual Studio 17 2022" ..
cmake --build . --config Release
- name: "Create Installer"
working-directory: ${{github.workspace}}
run: |
choco install wget
choco install innosetup
wget https://aka.ms/vs/17/release/vc_redist.x64.exe -O vc_redist.x64.exe
wget https://aka.ms/windowsappsdk/1.5/1.5.240607001/windowsappruntimeinstall-x64.exe -O windowsappruntimeinstall-x64.exe
iscc inno/setup.iss
- name: Upload
uses: actions/upload-artifact@v4
with:
path: ${{github.workspace}}/inno/NickvisionSpotlightSetup.exe
name: Windows-x64-Release