Skip to content

Commit 7ec88bc

Browse files
committed
Add GitHub Actions for MSVC and MSYS2
1 parent 4a046ee commit 7ec88bc

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/msvc.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: MSVC
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
arch: [ Win32, x64, ARM64 ]
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Configure CMake
15+
run: |
16+
$SPOUT_BUILD_ARM = ("${{ matrix.arch }}" -eq "ARM64") ? 'ON' : 'OFF'
17+
cmake -B build -A ${{ matrix.arch }} -DSPOUT_BUILD_SPOUTDX=ON -DSPOUT_BUILD_ARM="$SPOUT_BUILD_ARM"
18+
- name: Build
19+
run: cmake --build build

.github/workflows/msys2.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: MSYS2
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
sys: [ mingw32, mingw64, ucrt64, clang64 ]
12+
defaults:
13+
run:
14+
shell: msys2 {0}
15+
steps:
16+
- uses: msys2/setup-msys2@v2
17+
with:
18+
msystem: ${{ matrix.sys }}
19+
update: true
20+
pacboy:
21+
cmake:p
22+
toolchain:p
23+
- uses: actions/checkout@v4
24+
- name: Configure CMake
25+
run: cmake -B build -DSPOUT_BUILD_SPOUTDX=ON
26+
- name: Build
27+
run: cmake --build build

0 commit comments

Comments
 (0)