forked from aosp-mirror/platform_external_sonivox
-
Notifications
You must be signed in to change notification settings - Fork 6
69 lines (58 loc) · 1.72 KB
/
cmake-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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Windows CI
on:
workflow_dispatch:
push:
branches: [ "master", "devel" ]
pull_request:
branches: [ "master", "devel" ]
env:
BUILD_TYPE: RelWithDebInfo
INSTALL_LOCATION: SonivoxV3
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { icon: '⬛', sys: mingw32 }
- { icon: '🟦', sys: mingw64 }
- { icon: '🟨', sys: ucrt64 }
- { icon: '🟧', sys: clang64 }
name: 🚧${{ matrix.icon }} ${{ matrix.sys }}
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- name: '${{ matrix.icon }} Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
release: false
msystem: ${{matrix.sys}}
install: >-
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
gtest:p
- name: '${{ matrix.icon }} Configure CMake'
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}}
- name: '${{ matrix.icon }} Build'
run: cmake --build build --config ${{env.BUILD_TYPE}}
- name: '${{ matrix.icon }} Test'
working-directory: build
run: ctest -C ${{env.BUILD_TYPE}}
- name: '${{ matrix.icon }} Install'
run: cmake --install build
- name: '${{ matrix.icon }} Create Archive'
run: tar cvf ${{env.INSTALL_LOCATION}}.tar ${{env.INSTALL_LOCATION}}
- name: '${{ matrix.icon }} Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: ${{env.INSTALL_LOCATION}}-${{matrix.sys}}
path: ${{env.INSTALL_LOCATION}}.tar
retention-days: 90
overwrite: true