Skip to content

Commit 9ffb099

Browse files
committed
Add linux build action
1 parent d64d794 commit 9ffb099

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/build-linux.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build Linux
2+
3+
on: [push]
4+
5+
jobs:
6+
cpp-build:
7+
name: Build
8+
runs-on: ${{ matrix.os }}
9+
10+
strategy:
11+
matrix:
12+
os: [ubuntu-24.04]
13+
config: [ debug, release ]
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Configure Ubuntu Libraries
19+
run: sudo apt-get install -y libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev mesa-common-dev
20+
- name: Configure Clang
21+
uses: egor-tensin/setup-clang@v1
22+
with:
23+
version: 19
24+
platform: x64
25+
- name: Install Premake
26+
uses: Jarod42/install-premake5@v4
27+
with:
28+
ref: master
29+
- name: Generate Project
30+
run: premake5 gmake
31+
- name: Build
32+
run: make config=${{ matrix.config }} -j$(nproc)

0 commit comments

Comments
 (0)