Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/composite/buildSetup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Cross-Platform Setup"
description: "Performs cross-platform build setup"

runs:
using: "composite"
steps:
- name: Optionally set DEBUG_BUILD
shell: bash
if: github.event.inputs.debug-build == 'true'
run: |
echo "DEBUG_BUILD=-debug" >> $GITHUB_ENV
- name: Optionally set GH_USERNAME
shell: bash
if: github.event.inputs.include-username == 'true'
run: |
echo "GH_USERNAME=-${{ github.actor }}" >> $GITHUB_ENV
- name: Optionally set BUILD_TIME
shell: bash
if: github.event.inputs.include-datetime == 'true'
run: |
echo "BUILD_TIME=-$(date --iso-8601=minutes | sed -e 's/:/-/g' | sed -e 's/\+.*//')" >> $GITHUB_ENV
- name: Set .net6.0 SDK
shell: bash
run: |
wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
apt-get update -qq
apt-get install -y apt-transport-https
apt-get update -qq
apt-get install -y dotnet-sdk-6.0
- name: Set FOLDER_NAME
shell: bash
run: |
echo "FOLDER_NAME=${EXPORT_NAME}${{ github.event.inputs.folder-suffix }}${GH_USERNAME}${BUILD_TIME}" >> $GITHUB_ENV
- name: Setup
shell: bash
run: |
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable.mono ~/.local/share/godot/templates/${GODOT_VERSION}.stable.mono

60 changes: 3 additions & 57 deletions .github/workflows/export-c7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,11 @@ jobs:
container:
image: barichello/godot-ci:mono-3.4.4
steps:
- name: Optionally set DEBUG_BUILD
if: github.event.inputs.debug-build == 'true'
run: |
echo "DEBUG_BUILD=-debug" >> $GITHUB_ENV
- name: Optionally set GH_USERNAME
if: github.event.inputs.include-username == 'true'
run: |
echo "GH_USERNAME=-${{ github.actor }}" >> $GITHUB_ENV
- name: Optionally set BUILD_TIME
if: github.event.inputs.include-datetime == 'true'
run: |
echo "BUILD_TIME=-$(date --iso-8601=minutes | sed -e 's/:/-/g' | sed -e 's/\+.*//')" >> $GITHUB_ENV
- name: Set FOLDER_NAME
run: |
echo "FOLDER_NAME=${EXPORT_NAME}${{ github.event.inputs.folder-suffix }}${GH_USERNAME}${BUILD_TIME}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable.mono ~/.local/share/godot/templates/${GODOT_VERSION}.stable.mono
- uses: ./.github/workflows/composite/buildSetup
- name: Windows Build
run: |
mkdir -v -p build/${FOLDER_NAME}
Expand All @@ -74,29 +56,11 @@ jobs:
container:
image: barichello/godot-ci:mono-3.4.4
steps:
- name: Optionally set DEBUG_BUILD
if: github.event.inputs.debug-build == 'true'
run: |
echo "DEBUG_BUILD=-debug" >> $GITHUB_ENV
- name: Optionally set GH_USERNAME
if: github.event.inputs.include-username == 'true'
run: |
echo "GH_USERNAME=-${{ github.actor }}" >> $GITHUB_ENV
- name: Optionally set BUILD_TIME
if: github.event.inputs.include-datetime == 'true'
run: |
echo "BUILD_TIME=-$(date --iso-8601=minutes | sed -e 's/:/-/g' | sed -e 's/\+.*//')" >> $GITHUB_ENV
- name: Set FOLDER_NAME
run: |
echo "FOLDER_NAME=${EXPORT_NAME}${{ github.event.inputs.folder-suffix }}${GH_USERNAME}${BUILD_TIME}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable.mono ~/.local/share/godot/templates/${GODOT_VERSION}.stable.mono
- uses: ./.github/workflows/composite/buildSetup
- name: Linux Build
run: |
mkdir -v -p build/${FOLDER_NAME}
Expand All @@ -123,29 +87,11 @@ jobs:
container:
image: barichello/godot-ci:mono-3.4.4
steps:
- name: Optionally set DEBUG_BUILD
if: github.event.inputs.debug-build == 'true'
run: |
echo "DEBUG_BUILD=-debug" >> $GITHUB_ENV
- name: Optionally set GH_USERNAME
if: github.event.inputs.include-username == 'true'
run: |
echo "GH_USERNAME=-${{ github.actor }}" >> $GITHUB_ENV
- name: Optionally set BUILD_TIME
if: github.event.inputs.include-datetime == 'true'
run: |
echo "BUILD_TIME=-$(date --iso-8601=minutes | sed -e 's/:/-/g' | sed -e 's/\+.*//')" >> $GITHUB_ENV
- name: Set FOLDER_NAME
run: |
echo "FOLDER_NAME=${EXPORT_NAME}${{ github.event.inputs.folder-suffix }}${GH_USERNAME}${BUILD_TIME}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable.mono ~/.local/share/godot/templates/${GODOT_VERSION}.stable.mono
- uses: ./.github/workflows/composite/buildSetup
- name: Mac Build
run: |
mkdir -v -p build/${FOLDER_NAME}
Expand Down