49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Build
|
|
|
|
on: push
|
|
|
|
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
|
|
git clone --filter=blob:none --sparse https://github.com/raysan5/raylib.git
|
|
cd raylib
|
|
git sparse-checkout set src include src/raylib.h CMakeLists.txt
|
|
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
|