-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.21 KB
/
Copy pathbuild.yml
File metadata and controls
45 lines (35 loc) · 1.21 KB
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
name: CMake Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: "latest"
- name: Install dependencies on Linux (if applicable)
if: runner.os != 'Windows'
run: |
sudo apt-get update -y || true
sudo apt-get install -y build-essential cmake libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev || true
- name: Create build directory
run: cmake -B build -S . -DRAYLIB_LUA_BUILD_TEST=ON -DCMAKE_BUILD_TYPE=Debug
- name: Build the project
run: cmake --build build --parallel
- name: Create build directory
run: cmake -B build -S . -DRAYLIB_LUA_BUILD_TEST=ON -DRAYLIB_LUA_CXX=ON -DCMAKE_BUILD_TYPE=Debug
- name: Build the project with C++
run: cmake --build build --parallel