Skip to content

Commit

Permalink
feat(ci): add basic build CI
Browse files Browse the repository at this point in the history
Signed-off-by: Neo Xu <[email protected]>
  • Loading branch information
XuNeo committed May 25, 2024
1 parent e71b878 commit 760da3b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
name: Build on ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: ammaraskar/gcc-problem-matcher@master

- name: Install prerequisites
run: |
sudo apt update
sudo apt install gcc cmake ninja-build libpng-dev libfreetype6-dev libsdl2-dev lua5.3 liblua5.3-dev -y
- name: Build
run: |
cmake -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Debug -DLV_USE_LIBPNG=ON -DLV_USE_FREETYPE=ON .
ninja -Cbuild

0 comments on commit 760da3b

Please sign in to comment.