mirror of
https://github.com/ProgramSnail/snake_2024.git
synced 2025-12-26 16:18:45 +00:00
github action setup
This commit is contained in:
parent
0d30ca5575
commit
b66c5ae6ea
1 changed files with 18 additions and 0 deletions
18
.github/workflows/build.yaml
vendored
Normal file
18
.github/workflows/build.yaml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue