This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
2DHackAndSlay/.gitea/workflows/build.yml

57 lines
No EOL
1.8 KiB
YAML

name: build
run-name: Building Game
on:
push:
branches: [ dev-base ]
env:
GODOT_VERSION: 4.0.1
EXPORT_NAME: 2dHackAndSlay
PROJECT_PATH: /
jobs:
export-linux:
name: Linux 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/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
run: |
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"