-
Notifications
You must be signed in to change notification settings - Fork 22
99 lines (86 loc) · 2.53 KB
/
ci.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: CI
on:
push:
pull_request:
jobs:
build-on-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.24.x'
- name: Test cmake version
run: cmake --version
- name: Install OS dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
freeglut3-dev \
g++ \
libcurl4-openssl-dev \
libfontconfig-dev \
libgl1-mesa-dev \
libgtk2.0-dev \
mesa-common-dev \
unzip
- name: Get GCC version
run: gcc --version
- name: Get libc version
run: ldd --version
- name: Install wxWidgets
run: |
sudo apt-get install -y libwxgtk*-dev
sudo ln -s $(which wx-config) /usr/local/bin/wx-config-3
wx-config-3 --cflags | grep I
- name: Checkout
uses: actions/checkout@v2
- name: Build LK
run: |
cmake -Bbuild_linux -DCMAKE_BUILD_TYPE=Debug
cmake --build build_linux -- -j
- name: Save static lib & lksandbox
uses: actions/upload-artifact@v2
with:
name: LK-${{ env.RUNS_ON }}-x86_64
path: |
build_linux/lk_sandbox*
build_linux/lk*.a
build-on-windows:
runs-on: windows-latest
steps:
- name: Set relative paths
shell: bash
run: |
WXMSW3=$GITHUB_WORKSPACE/wxWidgets-3.2.3
echo "WXMSW3=$WXMSW3" >> $GITHUB_ENV
- name: Install wxWidgets
shell: bash
run: |
curl -L https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.3/wxWidgets-3.2.3.tar.bz2 -o wxWidgets-3.2.3.tar.bz2
ls
tar jxf wxWidgets-3.2.3.tar.bz2
cd wxWidgets-3.2.3
ls "C:\Program Files\Microsoft Visual Studio"
ls "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
MSBuild.exe build/msw/wx_vc17.sln /t:Build /p:Configuration=Release
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.24.x'
- name: Checkout
uses: actions/checkout@v2
- name: Build LK
shell: bash
run: |
ls ${WXMSW3}/build/msw
cmake -Bbuild_win -DCMAKE_BUILD_TYPE=Release
cmake --build build_win --config Release -j4
- name: Save static lib & lksandbox
uses: actions/upload-artifact@v2
with:
name: LK-${{ env.RUNS_ON }}-x86_64
path: |
build_win/lk_sandbox*
build_win/lk*.a