fix the rest of build #110
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Development build | |
| on: | |
| pull_request: | |
| branches-ignore: | |
| - 'l10n_main' | |
| types: [opened, reopened] | |
| push: | |
| branches-ignore: | |
| - 'l10n_main' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Development build | |
| strategy: | |
| matrix: | |
| include: | |
| - platform: 2 | |
| platform_name: ios | |
| runs-on: J316sAP | |
| steps: | |
| - name: Remove work folders | |
| run: | | |
| echo "before" | |
| ls -lah ./ | |
| rm -rf ./* || true | |
| rm -rf ./.??* || true | |
| echo "after" | |
| ls -lah ./ | |
| - name: Checkout repository | |
| uses: actions/checkout@main | |
| - name: Checkout repository submodules | |
| run: git submodule update --init --recursive | |
| - name: Get gl4es latest commit hash | |
| id: gl4es-sha | |
| run: echo "::set-output name=sha::$(echo $(git ls-remote https://github.com/PojavLauncherTeam/gl4es-114-extra refs/heads/master | grep -io '^\S*'))" | |
| shell: bash | |
| - name: Cache gl4es | |
| uses: actions/cache@main | |
| if: false # use gl4es 1.1.5 | |
| id: gl4es-cache | |
| with: | |
| path: gl4es/libs | |
| key: gl4es-holy-ios-shared-2-${{ steps.gl4es-sha.outputs.sha }} | |
| - name: Get gl4es | |
| if: false && steps.gl4es-cache.outputs.cache-hit != 'true' | |
| uses: actions/checkout@main | |
| with: | |
| repository: 'PojavLauncherTeam/gl4es-114-extra' | |
| path: 'gl4es' | |
| - name: Build gl4es | |
| if: false && steps.gl4es-cache.outputs.cache-hit != 'true' | |
| continue-on-error: true | |
| run: | | |
| cd gl4es | |
| git config user.email "github-actions@users.noreply.github.com" | |
| git config user.name "github-actions" | |
| export PATH=/opt/procursus/bin:$PATH | |
| wget https://github.com/leetal/ios-cmake/raw/master/ios.toolchain.cmake | |
| cmake -B build -DCMAKE_TOOLCHAIN_FILE=ios.toolchain.cmake -DDEFAULT_ES=2 \ | |
| -DNOX11=ON -DNOEGL=OFF -DSTATICLIB=OFF -DPLATFORM=OS64 \ | |
| -DCMAKE_C_FLAGS=-Wno-error=implicit-function-declaration | |
| cmake --build build --config RelWithDebInfo --target GL | |
| cp -R lib/libGL.dylib ../Natives/resources/Frameworks/libgl4es_114.dylib | |
| - name: Push gl4es | |
| if: false && github.event != 'pull_request' && github.ref_name == 'main' && steps.gl4es-cache.outputs.cache-hit != 'true' | |
| continue-on-error: true | |
| run: | | |
| git add Natives/resources/Frameworks/libgl4es_114.dylib | |
| git commit -am "CI: Update gl4es" | |
| git push | |
| - name: Build for ${{ matrix.platform_name }} | |
| run: | | |
| export PATH=/opt/homebrew/bin:$PATH | |
| export SLIMMED=1 | |
| if [ "${{ matrix.platform_name }}" == "ios" ]; then | |
| # Build ipa and tipa for iOS | |
| xcodebuild archive -archivePath artifacts/${{ matrix.platform_name }} -scheme AngelAuraAmethyst -config Release AD_HOC_CODE_SIGNING_ALLOWED=1 CODE_SIGN_IDENTITY= | |
| else | |
| # Build ipa only for everything else | |
| echo "Not supported for now" | |
| exit 1 | |
| fi | |
| - name: Package artifacts | |
| run: | | |
| cd artifacts | |
| rm -rf Payload | |
| ln -s ${{ matrix.platform_name }}.xcarchive/Products/Applications Payload | |
| cd .. | |
| gmake package | |
| gmake package TROLLSTORE_JIT_ENT=1 | |
| - name: Upload regular ipa | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: org.angelauramc.amethyst-${{ matrix.platform_name }}.ipa | |
| path: artifacts/org.angelauramc.amethyst-*-${{ matrix.platform_name }}.ipa | |
| - name: Upload regular tipa | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: org.angelauramc.amethyst-${{ matrix.platform_name }}-trollstore.tipa | |
| path: artifacts/org.angelauramc.amethyst-*-${{ matrix.platform_name }}-trollstore.tipa | |
| - name: Upload slimmed ipa | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: org.angelauramc.amethyst.slimmed-${{ matrix.platform_name }}.ipa | |
| path: artifacts/org.angelauramc.amethyst.slimmed-*-${{ matrix.platform_name }}.ipa | |
| - name: Upload slimmed tipa | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: org.angelauramc.amethyst.slimmed-${{ matrix.platform_name }}-trollstore.tipa | |
| path: artifacts/org.angelauramc.amethyst.slimmed-*-${{ matrix.platform_name }}-trollstore.tipa | |
| - name: Upload dSYM | |
| uses: actions/upload-artifact@main | |
| if: matrix.platform_name == 'ios' | |
| with: | |
| name: AngelAuraAmethyst.dSYM | |
| path: artifacts/${{ matrix.platform_name }}.xcarchive/dSYMs/AngelAuraAmethyst.app.dSYM |