-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (38 loc) · 1.28 KB
/
ci.yml
File metadata and controls
48 lines (38 loc) · 1.28 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
46
47
48
name: CI
on:
push:
pull_request:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled'
required: false
default: false
jobs:
build:
strategy:
matrix:
config:
- {name: "Linux", os: ubuntu-latest}
- {name: "LinuxClang", os: ubuntu-latest}
- {name: "Windows", os: windows-latest}
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.name }}
steps:
- uses: actions/checkout@v4
- name: Requirements (Linux)
if: startsWith(matrix.config.name, 'Linux')
run: sudo apt-get install libx11-dev mesa-common-dev libglu1-mesa-dev libxrender-dev libxfixes-dev libglew-dev libxext-dev
- name: Requirements (LinuxClang)
if: matrix.config.name == 'LinuxClang'
run: sudo apt-get install clang && echo "CC=/usr/bin/clang" >> $GITHUB_ENV && echo "CXX=/usr/bin/clang++" >> $GITHUB_ENV
- name: Configure
run: mkdir build && cd build && cmake ..
- name: Build
run: cd build && cmake --build .
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
- name: Test
run: cd bin64 && ./hl_test