From 3205ce7d96a38ec5c314c87f606c1fe07f387245 Mon Sep 17 00:00:00 2001 From: Chewico Date: Wed, 2 Jul 2025 21:50:35 +0200 Subject: [PATCH] Making gitea actions --- .gitea/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ README.md | 17 +++++++++++++---- 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..a7358c4 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Print environment + run: | + echo "Home: $HOME" + echo "Working dir: $(pwd)" + + - name: Manually Clone Repo + run: | + git clone --recursive https://git.frostdeer.com/Chewico/DeerEngine.git . + + - name: Install dependencies + run: sudo apt update && sudo apt install -y uuid-dev make gcc clang libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgtk-3-dev make gcc gdb + + - name: Generate make file + run: | + cd vendor/premake-core + make -f Bootstrap.mak linux + cd ../.. + vendor/premake-core/bin/release/premake5 gmake + + - name: Compile + run: | + make diff --git a/README.md b/README.md index 1535630..21a6725 100755 --- a/README.md +++ b/README.md @@ -1,23 +1,28 @@ # Deer + Deer is a game engine currently in development by Chewico, focused on facilitating voxel-based scenarios. # How to Compile + Deer can compile for both Linux and Windows. Mac support is not considered due to philosophical and technical reasons. Deer is built using Premake 5, which generates project files for various build systems such as Make and MSVC. You can check out Premake at: -- [Premake Official Website](https://premake.github.io) -- [Premake Core Source Code](https://github.com/premake/premake-core) +- [Premake Official Website](https://premake.github.io) +- [Premake Core Source Code](https://github.com/premake/premake-core) ## Linux + ### Clone the repo + ```console git clone https://git.frostdeer.com/Chewico/DeerEngine.git cd Deer ``` ### Generating Project Files + As we mentioned we need to generate the make files with premake, to do this you can install the premake bin or compile it as we will mention ```console @@ -28,16 +33,19 @@ cd ../.. ``` ```console -./vendor/premake-core/bin/release/premake5 gmake +vendor/premake-core/bin/release/premake5 gmake ``` If you want to generate vscode workspace use + ```console ./vendor/premake-core/bin/release/premake5 vscode ``` ### Compile + Run + ```console sudo apt update sudo apt install clang libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgtk-3-dev make gcc gdb @@ -45,6 +53,7 @@ sudo make ``` ### Run + ```console ./bin/linux-x86_64/Debug/DeerStudio/DeerStudio -``` \ No newline at end of file +```