-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (41 loc) · 1.03 KB
/
windows.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
name: Windows
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
Windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: true
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
- name: Install and Setup Dependencies
run: |
pacman -S mingw-w64-x86_64-make --noconfirm
pacman -S mingw-w64-x86_64-cmake --noconfirm
pacman -S mingw-w64-x86_64-gcc --noconfirm
pacman -S mingw-w64-x86_64-SDL2 --noconfirm
- name: Compile
run: |
cd example/
mkdir build
cd build
cmake .. -G "MinGW Makefiles"
cmake --build .
ls
# Only create artifact on a push to master
- if: github.event_name == 'push'
name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: lvgl_example_winx86_64
path: |
example/build/lvgl_example.exe