Skip to content

Commit

Permalink
Add checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey2k committed Oct 11, 2023
1 parent e3d27be commit e7a062a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 36 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# name: 🔗 Game Export Checks
# on:
# pull_request:
# branches:
# - "*"
# paths-ignore:
# - "**/*.md"
# - "LICENSE"
# - ".github/ISSUE_TEMPLATE/*"
# - ".github/CODEOWNERS"
# push:
# branches:
# - "master"
# paths-ignore:
# - "**/*.md"
# - "LICENSE"
# - ".github/ISSUE_TEMPLATE/*"
# - ".github/CODEOWNERS"
name: 🔗 Game Export Checks
on:
pull_request:
branches:
- "*"
paths-ignore:
- "**/*.md"
- "LICENSE"
- ".github/ISSUE_TEMPLATE/*"
- ".github/CODEOWNERS"
push:
branches:
- "master"
paths-ignore:
- "**/*.md"
- "LICENSE"
- ".github/ISSUE_TEMPLATE/*"
- ".github/CODEOWNERS"

# jobs:
# exports:
# name: 🔗 Game Exports
# uses: ./.github/workflows/exports.yml
# with:
# luapi_version: "v2.1-beta7"
# publish: false
jobs:
exports:
name: 🔗 Game Exports
uses: ./.github/workflows/exports.yml
with:
luapi_version: "v2.1-beta7"
publish: false
27 changes: 16 additions & 11 deletions .github/workflows/exports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ on:
workflow_call:
inputs:
luapi_version:
type: string
required: false
default: "v2.1-beta7"

publish:
type: boolean
required: false
default: false

Expand Down Expand Up @@ -34,28 +36,31 @@ jobs:
- name: Download Editor and Export Templates
shell: bash
run: |
wget ${{ env.EDITOR_URL }}
mkdir temp && cd temp
wget -q ${{ env.EDITOR_URL }}
unzip linux-editor.zip
mv godot* godot
mv godot* ../godot
chmod +x ../godot
rm -rf *.md LICENSE
wget ${{ env.EXPORT_TEMPLATES_URL }}
wget -q ${{ env.EXPORT_TEMPLATES_URL }}
unzip export-templates.zip
mv templates /tmp
- name: Export Game - Linux
shell: bash
run: |
mkdir bin/linnux/debug
mkdir bin/linux/release
mkdir -p bin/linux/debug
mkdir -p bin/linux/release
./godot --export-debug linux:ci bin/linux/debug/moon_invaders.x86_64
./godot --export-release linux:ci bin/linux/release/moon_invaders.x86_64
- name: Export Game - Windows
shell: bash
run: |
mkdir bin/windows/debug
mkdir bin/windows/release
mkdir -p bin/windows/debug
mkdir -p bin/windows/release
./godot --export-debug windows:ci bin/windows/debug/moon_invaders.exe
./godot --export-release windows:ci bin/windows/release/moon_invaders.exe
Expand All @@ -66,14 +71,14 @@ jobs:
mkdir bin/macos/debug
mkdir bin/macos/release
./godot --export-debug macos:ci bin/macos/debug/moon_invaders.x86_64
./godot --export-release macos:ci bin/macos/release/moon_invaders.x86_64
./godot -p --export-debug macos:ci bin/macos/debug/moon_invaders.x86_64
./godot -p --export-release macos:ci bin/macos/release/moon_invaders.x86_64
- name: Export Game - Web
shell: bash
run: |
mkdir bin/web/debug
mkdir bin/web/release
mkdir -p bin/web/debug
mkdir -p bin/web/release
./godot --export-debug web:ci bin/web/debug/index.html
./godot --export-release web:ci bin/web/release/index.html
Expand Down

0 comments on commit e7a062a

Please sign in to comment.