Skip to content

Commit fd03f03

Browse files
committed
Add GitHub Actions for Windows builds.
1 parent 2021839 commit fd03f03

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/windows.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: asio CI for Windows
2+
3+
on:
4+
push:
5+
branches: [ master, citest-* ]
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: windows-gha-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
windows:
14+
runs-on: ${{ matrix.runner }}
15+
name: ${{ matrix.runner }} ${{ matrix.arch }} ${{ matrix.toolset }}
16+
timeout-minutes: 60
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
include:
21+
- { runner: windows-2022, arch: x64, toolset: msvc }
22+
- { runner: windows-2022, arch: x86, toolset: msvc }
23+
- { runner: windows-2025, arch: x64, toolset: msvc }
24+
- { runner: windows-11-arm, arch: arm64, toolset: msvc }
25+
- { runner: windows-2022, arch: x64, toolset: mingw }
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Set up MSVC environment
30+
if: matrix.toolset == 'msvc'
31+
uses: ilammy/msvc-dev-cmd@v1
32+
with:
33+
arch: ${{ matrix.arch }}
34+
35+
- name: Build and test (MSVC)
36+
if: matrix.toolset == 'msvc'
37+
shell: cmd
38+
env:
39+
DEBUG: 1
40+
WARNINGS: 1
41+
STANDALONE: 1
42+
_WIN32_WINNT: '0x0A00'
43+
run: |
44+
cd src
45+
nmake -f Makefile.msc || exit /b 1
46+
nmake -f Makefile.msc check || exit /b 1
47+
48+
- name: Build and test (MinGW)
49+
if: matrix.toolset == 'mingw'
50+
shell: cmd
51+
env:
52+
DEBUG: 1
53+
WARNINGS: 1
54+
STANDALONE: 1
55+
run: |
56+
set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
57+
cd src
58+
mingw32-make -f Makefile.mgw || exit /b 1
59+
mingw32-make -f Makefile.mgw check || exit /b 1

0 commit comments

Comments
 (0)