-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (54 loc) · 1.83 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
53
54
55
56
57
58
name: Windows Build
on:
push:
branches:
- master
- dev
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Install deps
run: |
mkdir C:\deps
(new-object net.webclient).DownloadFile('https://github.com/electron/rcedit/releases/download/v1.0.0/rcedit-x64.exe', 'C:\deps\rcedit.exe')
(new-object net.webclient).DownloadFile('https://github.com/mesonbuild/cidata/raw/master/ninja.exe', 'C:\deps\ninja.exe')
shell: pwsh
- name: cd subprojects/luajit && make
run: |
cd subprojects\luajit\src
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" & msvcbuild.bat
shell: cmd
- name: mkdir build
run: mkdir build
- name: cd build && cmake .. -GNinja
run: |
set PATH=%cd%;C:\deps;%PATH%
cd build
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" & cmake.exe .. -G Ninja -D CMAKE_C_COMPILER=cl -D CMAKE_CXX_COMPILER=cl
shell: cmd
- name: cd build && ninja
run: |
set PATH=%cd%;C:\deps;%PATH%
cd build
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" & ninja.exe
shell: cmd
- name: cp build/nibble src
run: copy build/nibble src
shell: cmd
- name: mkdir nibble
run: mkdir nibble
shell: cmd
- name: cp src/{apps,frameworks} nibble
run: |
move build\nibble.exe nibble
move src\apps nibble
move src\frameworks nibble
move subprojects\luajit\src\lua51.dll nibble
C:\deps\rcedit "nibble/nibble.exe" --set-icon "assets/icon.ico"
shell: cmd
- uses: actions/upload-artifact@master
with:
name: Nibble for Windows (x86)
path: nibble/