github action setup

This commit is contained in:
programsnail 2024-07-26 20:43:07 +03:00
parent 0d30ca5575
commit b66c5ae6ea

18
.github/workflows/build.yaml vendored Normal file
View file

@ -0,0 +1,18 @@
name: Build Game
run-name: build game
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install deps
run: sudo apt-get install -y xmake g++ cmake libx11-dev
- name: Build project with xmake
run: xmake
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: game
path: build/linux/x86_64/release/game