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 10, 2025
1 parent 30285cf commit 452c8aa
Showing 1 changed file with 114 additions and 113 deletions.
227 changes: 114 additions & 113 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@ 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
ios_simulator: no
- identifier: linux-release
name: 🐧Linux Release
runner: ubuntu-24.04
target: template_release
dev_build: no
platform: linux
arch: x86_64
ios_simulator: no
- identifier: macos-debug
name: 🍎 macOS (universal) Debug
runner: macos-latest
target: template_debug
dev_build: yes
platform: macos
arch: universal
ios_simulator: no
# - identifier: linux-debug
# name: 🐧 Linux Debug
# runner: ubuntu-24.04
# target: template_debug
# dev_build: yes
# platform: linux
# arch: x86_64
# ios_simulator: no
# - identifier: linux-release
# name: 🐧Linux Release
# runner: ubuntu-24.04
# target: template_release
# dev_build: no
# platform: linux
# arch: x86_64
# ios_simulator: no
# - identifier: macos-debug
# name: 🍎 macOS (universal) Debug
# runner: macos-latest
# target: template_debug
# dev_build: yes
# platform: macos
# arch: universal
# ios_simulator: no
- identifier: macos-release
name: 🍎 macOS (universal) Release
runner: macos-latest
Expand All @@ -46,54 +46,54 @@ jobs:
platform: macos
arch: universal
ios_simulator: no
- identifier: windows-debug
name: 🏁 Windows Debug
runner: windows-latest
target: template_debug
dev_build: yes
platform: windows
arch: x86_64
ios_simulator: no
- identifier: windows-release
name: 🏁 Windows Release
runner: windows-latest
target: template_release
dev_build: no
platform: windows
arch: x86_64
ios_simulator: no
- identifier: android-arm64-debug
name: 🤖 Android arm64 Debug
runner: ubuntu-24.04
target: template_debug
dev_build: yes
platform: android
arch: arm64
ios_simulator: no
- identifier: android-arm64-release
name: 🤖 Android arm64 Release
runner: ubuntu-24.04
target: template_release
dev_build: no
platform: android
arch: arm64
ios_simulator: no
- 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
ios_simulator: no
- 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
ios_simulator: no
# - identifier: windows-debug
# name: 🏁 Windows Debug
# runner: windows-latest
# target: template_debug
# dev_build: yes
# platform: windows
# arch: x86_64
# ios_simulator: no
# - identifier: windows-release
# name: 🏁 Windows Release
# runner: windows-latest
# target: template_release
# dev_build: no
# platform: windows
# arch: x86_64
# ios_simulator: no
# - identifier: android-arm64-debug
# name: 🤖 Android arm64 Debug
# runner: ubuntu-24.04
# target: template_debug
# dev_build: yes
# platform: android
# arch: arm64
# ios_simulator: no
# - identifier: android-arm64-release
# name: 🤖 Android arm64 Release
# runner: ubuntu-24.04
# target: template_release
# dev_build: no
# platform: android
# arch: arm64
# ios_simulator: no
# - 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
# ios_simulator: no
# - 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
# ios_simulator: no
- identifier: ios-arm64-debug
name: 🍏 iOS (arm64) Debug
runner: macos-latest
Expand Down Expand Up @@ -195,7 +195,6 @@ jobs:
run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' dev_build='${{ matrix.dev_build }}' ios_simulator='${{ matrix.ios_simulator }}'
- name: Copy extra files to addon folder
shell: sh
run: |
Expand Down Expand Up @@ -232,6 +231,8 @@ jobs:
uses: actions/download-artifact@v4
with:
pattern: ${{ github.event.repository.name }}-ios*
path: .
merge-multiple: true
- name: Run ls to view all files and folders
run: |
ls -la
Expand All @@ -242,7 +243,7 @@ jobs:
merge-platforms:
runs-on: ubuntu-latest
needs: build
needs: create-xcframeworks
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -294,70 +295,70 @@ 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 .
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 -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 .
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 -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 'ios' artifact
run: |
cd artifact-ios
zip -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
Expand All @@ -367,8 +368,8 @@ jobs:
draft: true
files: |
${{github.event.repository.name}}-all-${{ github.sha }}.zip
${{github.event.repository.name}}-android-${{ 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}}-linux-${{ github.sha }}.zip
# ${{github.event.repository.name}}-windows-${{ github.sha }}.zip
${{github.event.repository.name}}-ios-${{ github.sha }}.zip

0 comments on commit 452c8aa

Please sign in to comment.