Files
CubeGame/.gitea/workflows/autobuild.yaml
T
milkwx3 12791ffd2b test5
2026-06-14 00:41:47 +03:00

51 lines
1.3 KiB
YAML

name: Build
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install build tools
run: |
sudo apt update
sudo apt install -y build-essential cmake zip unzip make libxrandr-dev
- name: Build makeheaders
run: |
cd makeheaders
make
cd ..
- name: Fetch libraries
run: |
cd ${{ gitea.workspace }}/src/libraries
git clone https://github.com/lsalzman/enet.git
git clone https://github.com/walterschell/Lua.git
curl -L -o raylib.zip https://github.com/raysan5/raylib/archive/refs/heads/master.zip
unzip raylib.zip
mv raylib-master raylib
cd ..
git clone https://github.com/jbeder/yaml-cpp.git
cd ../..
- name: Compile
run: |
chmod +x ${{ gitea.workspace }}/compile.sh
sh ${{ gitea.workspace }}/compile.sh
zip -r release-linux.zip OUTPUT-Linux || true
zip -r release-w64.zip OUTPUT-w64 || true
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: build-artifacts
path: |
release-linux.zip
release-w64.zip