-
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.03 KB
/
ci-cpp-windows.yml
File metadata and controls
47 lines (40 loc) · 1.03 KB
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
41
42
43
44
45
46
name: "CI C++: Windows"
on: [ push, pull_request ]
jobs:
build:
name: Windows (${{ matrix.compiler.name }})
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
compiler:
- {
name: "Clang",
cc: "clang",
cxx: "clang++",
xmake-toolchain: "--toolchain=llvm --sdk=\"$env:LLVM_PATH\""
}
steps:
- uses: actions/checkout@v4
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master
- name: Install LLVM
uses: KyleMayes/install-llvm-action@master
with:
version: "21.1.3"
- name: Configure & Install dependencies
shell: pwsh
env:
CC: ${{ matrix.compiler.cc }}
CXX: ${{ matrix.compiler.cxx }}
run: |
xmake f ${{ matrix.compiler.xmake-toolchain }} --runtimes="c++_shared" --enable_tests=y -v --yes
- name: Build
shell: pwsh
run: |
xmake build -v
- name: Run tests
shell: pwsh
run: |
xmake run