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
1.8 KiB
YAML
Raw Normal View History

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:
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: |
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
- name: Prepare Dependencies and Paths
2023-03-20 18:52:48 +00:00
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
2023-03-20 18:52:48 +00:00
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"