Skip to content
Open

CI #19

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
pull_request:
repository_dispatch:
types: [run_build]

jobs:
formatting-check:
name: check-clang-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check.
uses: jidicula/[email protected]
with:
clang-format-version: '14'
check-path: './src/'

build-linux:
# needs: formatting-check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libsdl2-dev libglew-dev
version: 1.0

- name: Build with cmake
run: |
mkdir build
cd build
cmake ..
make
Loading