Add GitHub Actions

This commit is contained in:
TheBrokenRail
2023-10-10 16:29:42 -04:00
parent 100dd1db5d
commit 9d4fb44a89
4 changed files with 39 additions and 0 deletions

27
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: 'Build'
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
- name: Install Dependencies
run: |
apt-get update
apt-get install --no-install-recommends -y build-essential cmake ninja-build libopenal-dev libsdl2-dev
- name: Build Desktop
run: |
cd platforms/sdl
mkdir build
cd build
cmake -GNinja ..
cmake --build .
- name: Build WASM
run: ./build-wasm.sh