forked from libunwind/libunwind
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.13 KB
/
CI-win.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI - Windows
permissions:
contents: read
on:
pull_request:
paths:
- '**'
- '!README'
- '!INSTALL'
- '!NEWS'
- '!doc/**'
- '!.**'
- '.github/workflows/CI-win.yml'
push:
branches:
- v[0-9].*
- master
jobs:
build-windows:
runs-on: windows-${{ matrix.config.server }}
name: build ${{ matrix.config.TARGET }}
strategy:
fail-fast: false
matrix:
config:
- {toolchain: Visual Studio 17 2022, arch: Win32, server: 2022, TARGET: arm-linux-gnueabihf}
- {toolchain: Visual Studio 17 2022, arch: x64, server: 2022, TARGET: aarch64-linux-gnu}
- {toolchain: Visual Studio 17 2022, arch: x64, server: 2022, TARGET: x86_64-linux-gnu}
steps:
- uses: actions/checkout@v3
- name: Build
shell: cmd
env:
TARGET: ${{ matrix.config.TARGET }}
run: |
cmake -G "${{ matrix.config.toolchain }}" -A ${{ matrix.config.arch }} -S . -B bin/windows-${{ matrix.config.arch }}/${{ matrix.config.TARGET }}
cmake --build bin/windows-${{ matrix.config.arch }}/${{ matrix.config.TARGET }}