builds godot
artifact names
bendn 2022-07-21
parent 9ac77ee · commit c27b659
-rw-r--r--.github/actions/build-godot/action.yml9
-rw-r--r--.github/workflows/build.yml5
2 files changed, 10 insertions, 4 deletions
diff --git a/.github/actions/build-godot/action.yml b/.github/actions/build-godot/action.yml
index b104485..fea9be7 100644
--- a/.github/actions/build-godot/action.yml
+++ b/.github/actions/build-godot/action.yml
@@ -12,19 +12,20 @@ inputs:
required: true
tools:
description: Editor / templates
- default: no
required: true
platform:
description: Platform to build for
- default: x11
required: true
target:
description: Target
- default: release
required: true
flags:
description: Flags to pass to the build
required: false
+ artifact-name:
+ description: Artifact name
+ required: true
+ default: godot
runs:
using: "composite"
@@ -60,6 +61,7 @@ runs:
run: |
cd godot
scons -j$(($(nproc)+2)) p=$PLATFORM tools=$TOOLS target=$TARGET use_lto=yes udev=yes $FLAGS
+ strip bin/* || true
ls -lh bin/
env:
PLATFORM: ${{ inputs.platform }}
@@ -71,5 +73,6 @@ runs:
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
+ name: ${{ inputs.artifact-name }}
path: godot/bin/*
retention-days: 20
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cf1cdab..e396686 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -13,6 +13,7 @@ jobs:
tools: no
platform: x11
target: release
+ artifact-name: godot-templates
build-editor:
runs-on: ubuntu-18.04
@@ -23,7 +24,8 @@ jobs:
branch: 3.x
tools: yes
platform: x11
- target: release
+ target: release_debug
+ artifact-name: godot-editor
build-headless:
runs-on: ubuntu-18.04
@@ -35,3 +37,4 @@ jobs:
tools: yes
platform: server
target: release_debug
+ artifact-name: godot-headless