From 452c8aa5fe79aa28e25e95cdf5f23c853e108d66 Mon Sep 17 00:00:00 2001 From: Delano Lourenco <3ddelano@gmail.com> Date: Mon, 10 Feb 2025 22:33:13 +0530 Subject: [PATCH] fix build.yml --- .github/workflows/build.yml | 227 ++++++++++++++++++------------------ 1 file changed, 114 insertions(+), 113 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4577188..4a82efe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -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: | @@ -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 @@ -242,7 +243,7 @@ jobs: merge-platforms: runs-on: ubuntu-latest - needs: build + needs: create-xcframeworks strategy: fail-fast: false matrix: @@ -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 @@ -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 \ No newline at end of file