-
Notifications
You must be signed in to change notification settings - Fork 4.2k
57 lines (52 loc) · 1.38 KB
/
windows-mingw.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: windows-mingw
on:
push:
branches: [master]
paths:
- '.github/workflows/windows-mingw.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'src/*'
- 'src/layer/*'
- 'src/layer/x86/**'
- 'src/layer/vulkan/**'
- 'tests/**'
pull_request:
branches: [master]
paths:
- '.github/workflows/windows-mingw.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'src/*'
- 'src/layer/*'
- 'src/layer/x86/**'
- 'src/layer/vulkan/**'
- 'tests/**'
concurrency:
group: windows-mingw-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
windows:
name: MinGW-w64
runs-on: windows-2022
env:
UseMultiToolTask: true
NCNN_CMAKE_OPTIONS: -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: x64
run: |
mkdir build-x64; cd build-x64
cmake ${{ env.NCNN_CMAKE_OPTIONS }} -DNCNN_BUILD_TESTS=ON -DNCNN_VULKAN=OFF -G "MinGW Makefiles" ..
cmake --build . --config Release -j 4
- name: x64-test
run: cd build-x64; ctest -C Release --output-on-failure -j 4
- name: x64-vulkan
run: |
mkdir build-x64-vulkan; cd build-x64-vulkan
cmake ${{ env.NCNN_CMAKE_OPTIONS }} -DNCNN_VULKAN=ON -DNCNN_SHARED_LIB=ON -G "MinGW Makefiles" ..
cmake --build . --config Release -j 4