-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (43 loc) · 1.17 KB
/
build-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
49
50
51
52
name: Build and Bundle Windows
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_windows:
# if: false # This workflow is disabled
runs-on: windows-latest
steps:
- run: git config --global core.autocrlf input
- uses: actions/checkout@v3
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
- name: Build pksav
run: |
cd deps/pksav/
mkdir build
cd build
cmake .. -DPKSAV_STATIC=ON -G "Unix Makefiles" -DPKSAV_ENABLE_TESTS=OFF -DPKSAV_ENABLE_DOCS=OFF -DPKSAV_ENABLE_APPS=OFF -DPKSAV_ENABLE_LIBRARY=OFF -DCMAKE_BUILD_TYPE=Release
make
- name: Build raylib
run: |
cd deps/raylib/src/
make PLATFORM=PLATFORM_DESKTOP
- name: Build Project
run: |
make
- name: Copy assets
run: |
mkdir -p build/assets
cp assets/icon.ico build/assets/icon.ico
cp assets/pkrom.rc.data build/assets/pkrom.rc.data
- name: Publish Build Artifacts
uses: actions/upload-artifact@v2
with:
name: pokeromtrader-artifacts-windows
path: build/