Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GHA] Add Windows build CI workflow. #95

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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=Win32