This commit is contained in:
parent
82ca9a1708
commit
3205ce7d96
31
.gitea/workflows/deploy.yml
Normal file
31
.gitea/workflows/deploy.yml
Normal file
@ -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
|
11
README.md
11
README.md
@ -1,7 +1,9 @@
|
|||||||
# Deer
|
# Deer
|
||||||
|
|
||||||
Deer is a game engine currently in development by Chewico, focused on facilitating voxel-based scenarios.
|
Deer is a game engine currently in development by Chewico, focused on facilitating voxel-based scenarios.
|
||||||
|
|
||||||
# How to Compile
|
# How to Compile
|
||||||
|
|
||||||
Deer can compile for both Linux and Windows. Mac support is not considered due to philosophical and technical reasons.
|
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.
|
Deer is built using Premake 5, which generates project files for various build systems such as Make and MSVC.
|
||||||
|
|
||||||
@ -11,13 +13,16 @@ You can check out Premake at:
|
|||||||
- [Premake Core Source Code](https://github.com/premake/premake-core)
|
- [Premake Core Source Code](https://github.com/premake/premake-core)
|
||||||
|
|
||||||
## Linux
|
## Linux
|
||||||
|
|
||||||
### Clone the repo
|
### Clone the repo
|
||||||
|
|
||||||
```console
|
```console
|
||||||
git clone https://git.frostdeer.com/Chewico/DeerEngine.git
|
git clone https://git.frostdeer.com/Chewico/DeerEngine.git
|
||||||
cd Deer
|
cd Deer
|
||||||
```
|
```
|
||||||
|
|
||||||
### Generating Project Files
|
### 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
|
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
|
```console
|
||||||
@ -28,16 +33,19 @@ cd ../..
|
|||||||
```
|
```
|
||||||
|
|
||||||
```console
|
```console
|
||||||
./vendor/premake-core/bin/release/premake5 gmake
|
vendor/premake-core/bin/release/premake5 gmake
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to generate vscode workspace use
|
If you want to generate vscode workspace use
|
||||||
|
|
||||||
```console
|
```console
|
||||||
./vendor/premake-core/bin/release/premake5 vscode
|
./vendor/premake-core/bin/release/premake5 vscode
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compile
|
### Compile
|
||||||
|
|
||||||
Run
|
Run
|
||||||
|
|
||||||
```console
|
```console
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install clang libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgtk-3-dev make gcc gdb
|
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
|
### Run
|
||||||
|
|
||||||
```console
|
```console
|
||||||
./bin/linux-x86_64/Debug/DeerStudio/DeerStudio
|
./bin/linux-x86_64/Debug/DeerStudio/DeerStudio
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user