Skip to content

Commit

Permalink
[GHA] Add Windows build CI workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rj1k committed Feb 5, 2025
1 parent 31eba7c commit cc42446
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Windows Build

on:
workflow_dispatch:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
branches:
- master

jobs:
build:
name: Build Windows
runs-on: windows-2019

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

# https://learn.microsoft.com/en-us/visualstudio/releases/2019/history
- name: Check available VS versions
shell: cmd
run: |
where vswhere.exe
vswhere.exe -all -prerelease -format json
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
# https://github.com/microsoft/setup-msbuild?tab=readme-ov-file#specifying-specific-versions-of-visual-studio-optional
# vs-version: "[16.11,16.12)"

- name: Build [x86-64]
shell: cmd
working-directory: win
run: |
msbuild SpanDSP.sln -t:build -verbosity:minimal -property:Configuration=Release -property:Platform=x64
- name: Build [x86]
shell: cmd
working-directory: win
run: |
msbuild SpanDSP.sln -t:build -verbosity:minimal -property:Configuration=Release -property:Platform=x86

0 comments on commit cc42446

Please sign in to comment.