2023-03-20 18:42:22 +00:00
|
|
|
name: build
|
|
|
|
run-name: Building Game
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ dev-base ]
|
|
|
|
|
2023-03-20 18:52:48 +00:00
|
|
|
env:
|
2023-03-23 00:20:04 +00:00
|
|
|
GODOT_VERSION: 4.0.1
|
2023-03-20 18:52:48 +00:00
|
|
|
EXPORT_NAME: 2dHackAndSlay
|
|
|
|
PROJECT_PATH: /
|
|
|
|
|
|
|
|
|
2023-03-20 18:42:22 +00:00
|
|
|
jobs:
|
2023-03-20 18:52:48 +00:00
|
|
|
export-linux:
|
|
|
|
name: Linux Export
|
|
|
|
runs-on: ubuntu-20.04
|
2023-03-20 18:42:22 +00:00
|
|
|
steps:
|
2023-03-20 19:31:43 +00:00
|
|
|
- name: Setup System Packages
|
2023-03-20 19:23:31 +00:00
|
|
|
run: |
|
2023-03-23 00:20:04 +00:00
|
|
|
apt update -y && apt install nodejs ca-certificates -y tree
|
2023-03-20 18:52:48 +00:00
|
|
|
- name: Checkout
|
2023-03-20 19:14:26 +00:00
|
|
|
uses: https://github.com/actions/checkout@v3
|
2023-03-23 00:20:04 +00:00
|
|
|
- name: Prepare Dependencies and Paths
|
2023-03-20 18:52:48 +00:00
|
|
|
run: |
|
2023-03-23 00:20:04 +00:00
|
|
|
mkdir -p ~/.local/share/godot/export_templates/$GODOT_VERSION.stable
|
|
|
|
mkdir -p build/linux
|
|
|
|
cp -r .buildtools/dependencies/. ~/.local/share/godot/export_templates/$GODOT_VERSION.stable
|
|
|
|
tree ~/.local/share/godot/export_templates/
|
|
|
|
- name: Run Build
|
|
|
|
run: .buildtools/godot-$GODOT_VERSION --headless -v --export-release "Linux/X11" build/linux/$EXPORT_NAME.64x86
|
|
|
|
- name: result info
|
2023-03-20 18:52:48 +00:00
|
|
|
run: |
|
2023-03-23 00:20:04 +00:00
|
|
|
tree build
|
|
|
|
echo "No Artifact uploading yet"
|
|
|
|
|
|
|
|
export-windows:
|
|
|
|
name: Windows Export
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: Setup System Packages
|
|
|
|
run: |
|
|
|
|
apt update -y && apt install nodejs ca-certificates -y tree
|
|
|
|
- name: Checkout
|
|
|
|
uses: https://github.com/actions/checkout@v3
|
|
|
|
- name: Prepare Dependencies and Paths
|
|
|
|
run: |
|
|
|
|
mkdir -p ~/.local/share/godot/export_templates/$GODOT_VERSION.stable
|
|
|
|
mkdir -p build/windows
|
|
|
|
cp -r .buildtools/dependencies/. ~/.local/share/godot/export_templates/$GODOT_VERSION.stable
|
|
|
|
tree ~/.local/share/godot/export_templates/
|
|
|
|
- name: Run Build
|
|
|
|
run: .buildtools/godot-$GODOT_VERSION --headless -v --export-release "Windows Desktop" build/windows/$EXPORT_NAME.exe
|
|
|
|
- name: result info
|
|
|
|
run: |
|
|
|
|
tree build
|
|
|
|
echo "No Artifact uploading yet"
|