-
Notifications
You must be signed in to change notification settings - Fork 283
38 lines (30 loc) · 954 Bytes
/
linux.yml
File metadata and controls
38 lines (30 loc) · 954 Bytes
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
name: Linux
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: ./
jobs:
build:
name: Clang ${{ matrix.configuration }} x64
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
strategy:
matrix:
configuration: [Debug, Release]
steps:
- uses: actions/checkout@v5
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install -y libgl1-mesa-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev
- name: Generate premake5 solution
working-directory: ${{env.SOLUTION_FILE_PATH}}
run: ./gen_proj.sh
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
CONFIG_LOWER=$(echo "${{ matrix.configuration }}" | tr '[:upper:]' '[:lower:]')
make -j$(nproc) config=${CONFIG_LOWER}_x64