Skip to content

Commit

Permalink
fix build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
3ddelano committed Feb 11, 2025
1 parent cca6d92 commit c02b793
Showing 1 changed file with 120 additions and 117 deletions.
237 changes: 120 additions & 117 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,76 +14,76 @@ jobs:
fail-fast: false
matrix:
include:
# - identifier: linux-debug
# name: 🐧 Linux Debug
# runner: ubuntu-24.04
# target: template_debug
# dev_build: yes
# platform: linux
# arch: x86_64
# - identifier: linux-release
# name: 🐧Linux Release
# runner: ubuntu-24.04
# target: template_release
# dev_build: no
# platform: linux
# arch: x86_64
# - identifier: macos-debug
# name: 🍎 macOS (universal) Debug
# runner: macos-latest
# target: template_debug
# dev_build: yes
# platform: macos
# arch: universal
- identifier: linux-debug
name: 🐧 Linux Debug
runner: ubuntu-24.04
target: template_debug
dev_build: yes
platform: linux
arch: x86_64
- identifier: linux-release
name: 🐧Linux Release
runner: ubuntu-24.04
target: template_release
dev_build: no
platform: linux
arch: x86_64
- identifier: macos-debug
name: 🍎 macOS (universal) Debug
runner: macos-latest
target: template_debug
dev_build: yes
platform: macos
arch: universal
- identifier: macos-release
name: 🍎 macOS (universal) Release
runner: macos-latest
target: template_release
dev_build: no
platform: macos
arch: universal
# - identifier: windows-debug
# name: 🏁 Windows Debug
# runner: windows-latest
# target: template_debug
# dev_build: yes
# platform: windows
# arch: x86_64
# - identifier: windows-release
# name: 🏁 Windows Release
# runner: windows-latest
# target: template_release
# dev_build: no
# platform: windows
# arch: x86_64
# - identifier: android-arm64-debug
# name: 🤖 Android arm64 Debug
# runner: ubuntu-24.04
# target: template_debug
# dev_build: yes
# platform: android
# arch: arm64
# - identifier: android-arm64-release
# name: 🤖 Android arm64 Release
# runner: ubuntu-24.04
# target: template_release
# dev_build: no
# platform: android
# arch: arm64
# - identifier: android-x86_64-debug
# name: 🤖 Android x86_64 Debug
# runner: ubuntu-24.04
# target: template_debug
# dev_build: yes
# platform: android
# arch: x86_64
# - identifier: android-x86_64-release
# name: 🤖 Android x86_64 Release
# runner: ubuntu-24.04
# target: template_release
# dev_build: no
# platform: android
# arch: x86_64
- identifier: windows-debug
name: 🏁 Windows Debug
runner: windows-latest
target: template_debug
dev_build: yes
platform: windows
arch: x86_64
- identifier: windows-release
name: 🏁 Windows Release
runner: windows-latest
target: template_release
dev_build: no
platform: windows
arch: x86_64
- identifier: android-arm64-debug
name: 🤖 Android arm64 Debug
runner: ubuntu-24.04
target: template_debug
dev_build: yes
platform: android
arch: arm64
- identifier: android-arm64-release
name: 🤖 Android arm64 Release
runner: ubuntu-24.04
target: template_release
dev_build: no
platform: android
arch: arm64
- identifier: android-x86_64-debug
name: 🤖 Android x86_64 Debug
runner: ubuntu-24.04
target: template_debug
dev_build: yes
platform: android
arch: x86_64
- identifier: android-x86_64-release
name: 🤖 Android x86_64 Release
runner: ubuntu-24.04
target: template_release
dev_build: no
platform: android
arch: x86_64
- identifier: ios-arm64-all
name: 🍏 iOS (arm64) All
runner: macos-latest
Expand Down Expand Up @@ -187,16 +187,17 @@ jobs:
run: |
Remove-Item ${{ github.workspace }}/artifact-${{ matrix.identifier }}/${{ github.event.repository.name }}/addons/epic-online-services-godot/bin/windows/* -Include *.exp,*.lib,*.ilk -Force
- name: View files recursive
- name: View artifact files recursive
run: |
ls -R
cd ${{ github.workspace }}/artifact-${{ matrix.identifier }}/ && ls -R
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ matrix.identifier }}-${{ github.sha }}
path: |
${{ github.workspace }}/artifact-${{ matrix.identifier }}/
compression-level: 9
retention-days: 14

merge-platforms:
Expand Down Expand Up @@ -228,6 +229,7 @@ jobs:
with:
name: ${{ github.event.repository.name }}-${{ matrix.matchpattern }}-${{ github.sha }}
pattern: ${{ github.event.repository.name }}-${{ matrix.matchpattern }}*
compression-level: 9
retention-days: 14

merge-all:
Expand All @@ -239,6 +241,7 @@ jobs:
with:
name: ${{ github.event.repository.name }}-all-${{ github.sha }}
pattern: ${{ github.event.repository.name }}-*
compression-level: 9
retention-days: 14

upload-to-release:
Expand All @@ -253,81 +256,81 @@ jobs:
with:
name: ${{ github.event.repository.name }}-all-${{ github.sha }}
path: artifact-all
# - name: Download 'android' artifact
# uses: actions/download-artifact@v4
# with:
# name: ${{ github.event.repository.name }}-android-${{ github.sha }}
# path: artifact-android
- name: Download 'android' artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-android-${{ github.sha }}
path: artifact-android
- name: Download 'macos' artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-macos-${{ github.sha }}
path: artifact-macos
# - name: Download 'linux' artifact
# uses: actions/download-artifact@v4
# with:
# name: ${{ github.event.repository.name }}-linux-${{ github.sha }}
# path: artifact-linux
# - name: Download 'windows' artifact
# uses: actions/download-artifact@v4
# with:
# name: ${{ github.event.repository.name }}-windows-${{ github.sha }}
# path: artifact-windows
- name: Download 'linux' artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-linux-${{ github.sha }}
path: artifact-linux
- name: Download 'windows' artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-windows-${{ github.sha }}
path: artifact-windows
- name: Download 'ios' artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-ios-${{ github.sha }}
path: artifact-ios

# - name: List all artifact folders
# run: |
# ls -la artifact-all artifact-android artifact-macos artifact-linux artifact-windows
- name: List all artifact folders
run: |
ls -la artifact-all artifact-android artifact-macos artifact-linux artifact-windows
- name: Zip 'all' artifact
run: |
cd artifact-all
zip -r ../${{ github.event.repository.name }}-all-${{ github.sha }}.zip .
zip -9 -r ../${{ github.event.repository.name }}-all-${{ github.sha }}.zip .
cd ..
# - name: Zip 'android' artifact
# run: |
# cd artifact-android
# zip -r ../${{ github.event.repository.name }}-android-${{ github.sha }}.zip .
# cd ..
- name: Zip 'android' artifact
run: |
cd artifact-android
zip -9 -r ../${{ github.event.repository.name }}-android-${{ github.sha }}.zip .
cd ..
- name: Zip 'macos' artifact
run: |
cd artifact-macos
zip -r ../${{ github.event.repository.name }}-macos-${{ github.sha }}.zip .
zip -9 -r ../${{ github.event.repository.name }}-macos-${{ github.sha }}.zip .
cd ..
# - name: Zip 'linux' artifact
# run: |
# cd artifact-linux
# zip -r ../${{ github.event.repository.name }}-linux-${{ github.sha }}.zip .
# cd ..
# - name: Zip 'windows' artifact
# run: |
# cd artifact-windows
# zip -r ../${{ github.event.repository.name }}-windows-${{ github.sha }}.zip .
# cd ..
- name: Zip 'linux' artifact
run: |
cd artifact-linux
zip -9 -r ../${{ github.event.repository.name }}-linux-${{ github.sha }}.zip .
cd ..
- name: Zip 'windows' artifact
run: |
cd artifact-windows
zip -9 -r ../${{ github.event.repository.name }}-windows-${{ github.sha }}.zip .
cd ..
- name: Zip 'ios' artifact
run: |
cd artifact-ios
zip -r ../${{ github.event.repository.name }}-ios-${{ github.sha }}.zip .
zip -9 -r ../${{ github.event.repository.name }}-ios-${{ github.sha }}.zip .
cd ..
# - name: List all artifact folders post zipping
# run: |
# ls -la artifact-all artifact-android artifact-macos artifact-linux artifact-windows
- name: List all artifact folders post zipping
run: |
ls -la artifact-all artifact-android artifact-macos artifact-linux artifact-windows
# - name: Create draft release and upload assets
# uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# tag_name: ${{ github.ref_name }}
# draft: true
# files: |
# ${{github.event.repository.name}}-all-${{ github.sha }}.zip
# ${{github.event.repository.name}}-android-${{ github.sha }}.zip
# ${{github.event.repository.name}}-macos-${{ github.sha }}.zip
# ${{github.event.repository.name}}-linux-${{ github.sha }}.zip
# ${{github.event.repository.name}}-windows-${{ github.sha }}.zip
# ${{github.event.repository.name}}-ios-${{ github.sha }}.zip
- name: Create draft release and upload assets
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
draft: true
files: |
${{github.event.repository.name}}-all-${{ github.sha }}.zip
${{github.event.repository.name}}-android-${{ github.sha }}.zip
${{github.event.repository.name}}-macos-${{ github.sha }}.zip
${{github.event.repository.name}}-linux-${{ github.sha }}.zip
${{github.event.repository.name}}-windows-${{ github.sha }}.zip
${{github.event.repository.name}}-ios-${{ github.sha }}.zip

0 comments on commit c02b793

Please sign in to comment.