-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 1.05 KB
/
Linux.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
name: "Linux + Clang/GCC"
on: [push, pull_request, workflow_dispatch]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- { name: "Linux + Clang x86_64", c_compiler: "clang", cpp_compiler: "clang++"}
- { name: "Linux + gcc x86_64", c_compiler: "gcc", cpp_compiler: "g++"}
name: ${{ matrix.config.name }}
steps:
- name: Install Dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends libglfw3 libglfw3-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev
- name: Checkout Submodules
uses: actions/checkout@v2
with:
submodules: true
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: Build
run: |
cmake . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=${{ matrix.config.c_compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cpp_compiler }} -G Unix\ Makefiles
cmake --build ./build