forked from videolan/libvlcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.43 KB
/
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
58
name: MSYS2 (MingW)
on:
push:
paths:
- '**.zig'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include: [
{ msystem: CLANG64, arch: x86_64, prefix: /clang64 },
{ msystem: CLANG32, arch: i686, prefix: /clang32 }
]
steps:
- uses: actions/checkout@v3
with:
path: temp
submodules: recursive
fetch-depth: 0
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
path-type: inherit
location: D:\
install: git mingw-w64-clang-${{ matrix.arch }}-vlc
update: true
# - name: install windows sdk
# run: choco install windows-sdk-10.0
- name: Move Checkout
run: |
Copy-Item -Path ".\temp" -Destination "C:\_" -Recurse
- name: Build & Tests (x86)
shell: msys2 {0}
if: ${{ matrix.arch == 'i686' }}
run: |
cd /C/_
zig build --summary all -freference-trace -Dtarget=x86-windows-gnu
- name: Build & Tests (x86_x64)
shell: msys2 {0}
if: ${{ matrix.arch == 'x86_64' }}
run: |
cd /C/_
zig build --summary all -freference-trace -Dtarget=native-windows-gnu