mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-01-17 22:35:39 +00:00
On branch feat/godot-configurator
Changes to be committed: modified: .github/workflows/buid-gdc.yml
This commit is contained in:
parent
e8c9cf84b4
commit
5b4890954a
64
.github/workflows/buid-gdc.yml
vendored
64
.github/workflows/buid-gdc.yml
vendored
|
@ -1,28 +1,52 @@
|
||||||
name: Build Godot Project
|
name: Stable release builds
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push: {}
|
push:
|
||||||
pull_request: {}
|
branches: [ release ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
GODOT_VERSION: 4.2.2
|
||||||
|
EXPORT_NAME: RetroDECK-Godot
|
||||||
|
TAG: v0.005
|
||||||
|
#BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Godot:
|
export-linux:
|
||||||
|
name: Linux Export 🐧
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
container:
|
||||||
matrix:
|
image: docker://barichello/godot-ci:4.2.2
|
||||||
platform: [linux]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout 🛎️
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: true
|
submodules: true
|
||||||
- name: Build
|
- name: Setup 💻
|
||||||
id: build
|
run: |
|
||||||
uses: manleydev/build-godot-action@v1.4.1
|
mkdir -v -p build/${EXPORT_NAME}-Linux-64bit build/${EXPORT_NAME}-Linux-32bit build/${EXPORT_NAME}-Linux-ARM64 build/${EXPORT_NAME}-Linux-ARM32 ~/.local/share/godot/export_templates
|
||||||
|
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
|
||||||
|
- name: Import resources once 📦
|
||||||
|
continue-on-error: true
|
||||||
|
run: godot --headless -v --import
|
||||||
|
- name: Linux Build 🔧
|
||||||
|
run: |
|
||||||
|
godot --headless -v --export-release "Linux/X11 32-bit" ./build/${EXPORT_NAME}-Linux-32bit/${EXPORT_NAME}.x86
|
||||||
|
- name: Give execute permission ☑️
|
||||||
|
run: |
|
||||||
|
chmod +x ./build/${EXPORT_NAME}-Linux-64bit/${EXPORT_NAME}.x86_64
|
||||||
|
# - name: Copy pixelorama_data folder 📁
|
||||||
|
# run: |
|
||||||
|
# rm ./pixelorama_data/.gdignore
|
||||||
|
# cp -R ./pixelorama_data ./build/${EXPORT_NAME}-Linux-64bit
|
||||||
|
- name: Create tar.gz archive 🗜️
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
tar zcvf ${EXPORT_NAME}-Linux-64bit.tar.gz ${EXPORT_NAME}-Linux-64bit
|
||||||
|
- name: Upload Release Asset 🚀
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
name: example
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
preset: ${{ matrix.platform }}
|
file: ./build/${{env.EXPORT_NAME}}-Linux-*.tar.gz
|
||||||
debugMode: "true"
|
tag: ${{env.TAG}}
|
||||||
- name: Upload Artifact
|
overwrite: true
|
||||||
uses: actions/upload-artifact@v2
|
file_glob: true
|
||||||
with:
|
|
||||||
name: Client - ${{ matrix.platform }}
|
|
||||||
path: ${{ github.workspace }}/${{ steps.build.outputs.build }}
|
|
||||||
|
|
Loading…
Reference in a new issue