11
11
mingw :
12
12
if : github.repository_owner == 'aws'
13
13
runs-on : windows-latest
14
+ env :
15
+ CMAKE_BUILD_TYPE : Release
14
16
steps :
15
17
- name : Install NASM
16
18
@@ -35,14 +37,15 @@ jobs:
35
37
CMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
36
38
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
37
39
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
38
- CMAKE_BUILD_TYPE=Release \
39
40
- name : Build Project
40
41
run : cmake --build ./build --target all
41
42
- name : Run tests
42
43
run : cmake --build ./build --target run_tests
43
44
clang :
44
45
if : github.repository_owner == 'aws'
45
46
runs-on : windows-latest
47
+ env :
48
+ CMAKE_BUILD_TYPE : Release
46
49
steps :
47
50
- name : Install NASM
48
51
63
66
options : |
64
67
CMAKE_SYSTEM_NAME=Windows \
65
68
CMAKE_SYSTEM_PROCESSOR=x86_64 \
66
- CMAKE_MAKE_PROGRAM=ninja.exe \
67
- CMAKE_BUILD_TYPE=Release \
68
69
- name : Build Project
69
70
run : cmake --build ./build --target all
70
71
- name : Run tests
@@ -78,12 +79,14 @@ jobs:
78
79
- x64
79
80
- x64_arm64
80
81
runs-on : windows-latest
82
+ env :
83
+ CMAKE_GENERATOR : " Visual Studio 17 2022"
84
+ CMAKE_GENERATOR_TOOLSET : " ClangCL,host=x64"
85
+ CMAKE_BUILD_TYPE : Release
81
86
steps :
82
87
- if : ${{ matrix.target == 'x64' }}
83
88
name : Install NASM
84
89
85
- - name : Remove wrong clang-cl.exe
86
- run : rm "C:/Program Files/LLVM/bin/clang-cl.exe"
87
90
- name : Checkout
88
91
uses : actions/checkout@v4
89
92
- uses : TheMrMilchmann/setup-msvc-dev@v3
@@ -92,32 +95,16 @@ jobs:
92
95
- if : ${{ matrix.target == 'x64' }}
93
96
name : Setup CMake
94
97
95
- with :
96
- generator : Ninja
97
- c-compiler : clang-cl
98
- cxx-compiler : clang-cl
99
- options : |
100
- CMAKE_CROSSCOMPILING=${{ ((matrix.target == 'x64') && '0') || '1' }} \
101
- CMAKE_SYSTEM_NAME=Windows \
102
- CMAKE_SYSTEM_PROCESSOR=x86_64 \
103
- CMAKE_BUILD_TYPE=Release \
104
98
- if : ${{ matrix.target == 'x64_arm64' }}
105
99
name : Setup CMake
106
100
107
101
with :
108
- generator : Ninja
109
- c-compiler : clang-cl
110
- cxx-compiler : clang-cl
111
102
options : |
112
- CMAKE_CROSSCOMPILING=1 \
103
+ CMAKE_GENERATOR_PLATFORM=ARM64 \
113
104
CMAKE_SYSTEM_NAME=Windows \
114
105
CMAKE_SYSTEM_PROCESSOR=ARM64 \
115
- CMAKE_C_COMPILER_TARGET=arm64-pc-windows-msvc \
116
- CMAKE_ASM_COMPILER_TARGET=arm64-pc-windows-msvc \
117
- CMAKE_CXX_COMPILER_TARGET=arm64-pc-windows-msvc \
118
- CMAKE_BUILD_TYPE=Release \
119
106
- name : Build Project
120
- run : cmake --build ./build --target all
107
+ run : cmake --build ./build --target all_tests
121
108
- if : ${{ matrix.target == 'x64' }}
122
109
name : Run tests
123
110
run : cmake --build ./build --target run_tests
0 commit comments