Skip to content

Fix for one missing variable #113

Fix for one missing variable

Fix for one missing variable #113

Workflow file for this run

name: Export C7 Game
on:
workflow_dispatch:
inputs:
debug-build:
type: boolean
description: Checked for debug build, unchecked for release
default: true
folder-suffix:
description: Will be added to "C7" for folder name
required: false
include-username:
type: boolean
description: Append your GitHub username to the folder name
default: true
include-datetime:
type: boolean
description: Append ISO8601 date/time to folder name
default: true
pull_request:
branches: ['Development', 'twrner/set-up-ci']
push:
branches: ['Development', 'twrner/set-up-ci']
env:
GODOT_VERSION: 4.2.2
EXPORT_NAME: C7
jobs:
Export-C7-Windows:
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:mono-4.2.2
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- uses: ./.github/workflows/composite/buildSetup
- name: Windows Build
run: |
mkdir -v -p build/${FOLDER_NAME}
cd ${EXPORT_NAME}
dotnet build
godot -v --headless --export${BUILD_SUFFIX} "Windows Desktop" ../build/${FOLDER_NAME}/${EXPORT_NAME}.exe
- name: Copy Static Files
run: |
if cp -r ${EXPORT_NAME}/Text build/${FOLDER_NAME}/Text && cp -r ${EXPORT_NAME}/Art build/${FOLDER_NAME}/Art
then
echo "successfully copied static files to build"
else
echo "::warning title=Static File Copy Failed::Failed to add the static files to the build"
exit 1
fi
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.FOLDER_NAME }}-Windows
path: build/${{ ENV.FOLDER_NAME }}
Export-C7-Linux:
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:mono-4.2.2
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- uses: ./.github/workflows/composite/buildSetup
- name: Linux Build
run: |
mkdir -v -p build/${FOLDER_NAME}
cd ${EXPORT_NAME}
dotnet build
godot -v --headless --export${BUILD_SUFFIX} "Linux/X11" ../build/${FOLDER_NAME}/${EXPORT_NAME}.x86_64
- name: Copy Static Files
run: |
if cp -r ${EXPORT_NAME}/Text build/${FOLDER_NAME}/Text && cp -r ${EXPORT_NAME}/Art build/${FOLDER_NAME}/Art
then
echo "successfully copied static files to build"
else
echo "::warning title=Static File Copy Failed::Failed to add the static files to the build"
exit 1
fi
- name: Create Tar Archive
run: |
tar -C build -zcvf build/${FOLDER_NAME}.tgz ${FOLDER_NAME}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
path: build/${{ env.FOLDER_NAME }}.tgz
name: ${{ env.FOLDER_NAME }}-Linux-x86_64
Export-C7-Mac:
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:mono-4.2.2
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- uses: ./.github/workflows/composite/buildSetup
- name: Mac Build
run: |
mkdir -v -p build/${FOLDER_NAME}
cd ${EXPORT_NAME}
dotnet build
godot -v --headless --export${BUILD_SUFFIX} "macOS" ../build/${FOLDER_NAME}.zip
- name: Copy Static Files
run: |
cd ${EXPORT_NAME}
if zip -r ../build/${FOLDER_NAME}.zip Art Text
then
echo "successfully copied static files to build"
else
echo "::warning title=Static File Copy Failed::Failed to add the static files to the build"
exit 1
fi
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.FOLDER_NAME }}-Mac
path: build/${{ env.FOLDER_NAME }}.zip