Skip to content
Closed
Show file tree
Hide file tree
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
54 changes: 54 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CMake on a single platform

on:
pull_request:
branches: [ "main" ]

jobs:
tests:

# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
steps:

- name: Checkout this repo
uses: actions/checkout@v4

- name: Cache Submodules
id: cache-submodule
uses: actions/cache@v4
with:
key: third_party
path: third_party

- name: Checkout submodules
if: steps.cache-submodule.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
submodules: recursive

- name: Deps
run: |
sudo apt-get install libgl1-mesa-dev build-essential git make \
pkg-config cmake ninja-build gnome-desktop-testing libasound2-dev libpulse-dev \
libaudio-dev libfribidi-dev libjack-dev libsndio-dev libx11-dev libxext-dev \
libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev libxtst-dev \
libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev libgles2-mesa-dev \
libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev libthai-dev \
libpipewire-0.3-dev libwayland-dev libdecor-0-dev liburing-dev

- name: Configure CMake
# Configure CMake in a 'build' subdirectory.
run: cmake --preset debug

- name: Build
# Build your program with the given configuration
run: cmake --build --preset tests-debug

- name: Test
working-directory: ${{github.workspace}}/build/debug
# Execute tests
run: ./tests

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ Debug
Release

.cache
ccache
# .zed
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"makefile.configureOnOpen": true
"makefile.configureOnOpen": true,
"files.exclude": {
"**/.git": false
}
}
2 changes: 1 addition & 1 deletion index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ int main(int argc, char** argv)
}
});


//

while(!window.should_close) {

Expand Down
Loading