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

39 lines
978 B
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.0
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
container:
image: barichello/godot-ci:3.3.4
2023-03-20 18:42:22 +00:00
steps:
2023-03-20 19:16:08 +00:00
- name: Setup
2023-03-20 19:15:30 +00:00
- run: |
apt install nodejs -y
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-20 18:52:48 +00:00
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Linux Build
run: |
mkdir -v -p build/linux
cd $PROJECT_PATH
godot -v --export "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64
- name: Upload Artifact
2023-03-20 18:53:56 +00:00
uses: https://github.com/actions/upload-artifact@v1
2023-03-20 18:52:48 +00:00
with:
name: linux
path: build/linux