-
Notifications
You must be signed in to change notification settings - Fork 25
44 lines (41 loc) · 1.03 KB
/
build.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
name: Builder
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build-windows:
name: Windows Build
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Configure
run: |
mkdir Build
cd Build
cmake -G "MinGW Makefiles" -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=RELEASE ..
- name: Build
run: |
cd Build
make -j4
build-linux:
name: Linux Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libglfw3-dev libassimp-dev
version: 1.0
- name: Configure
run: |
mkdir Build
cd Build
cmake -G "Unix Makefiles" -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=RELEASE ..
- name: Build
run: |
cd Build
make -j4