Move dependencies to its own place, upload fixes
This commit is contained in:
1 parent
b7bcd3c1a2
commit
9b879c3fd1
1 file changed
+48
-28
@@ -10,21 +10,9 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Development build
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- platform: 2
|
||||
platform_name: iOS
|
||||
- platform: 3
|
||||
platform_name: iOS Simulator
|
||||
- platform: 7
|
||||
platform_name: tvOS
|
||||
- platform: 8
|
||||
platform_name: tvOS Simulator
|
||||
|
||||
runs-on: MacStadium
|
||||
deps:
|
||||
name: Get dependencies
|
||||
runs-on: MacStadium-prerequisite
|
||||
steps:
|
||||
- name: Remove work folders
|
||||
env:
|
||||
@@ -34,15 +22,11 @@ jobs:
|
||||
ls -lah ./
|
||||
echo $password | sudo -S rm -rf ./* || true
|
||||
echo $password | sudo -S rm -rf ./.??* || true
|
||||
echo $password | sudo -S rm -rf /Users/eilionoir/actions/prerequisites || true
|
||||
mkdir -p /Users/eilionoir/actions/prerequisites
|
||||
echo "after"
|
||||
ls -lah ./
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- 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*'))"
|
||||
@@ -75,7 +59,7 @@ jobs:
|
||||
-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
|
||||
cp -R lib/libGL.dylib /Users/eilionoir/actions/prerequisites/libgl4es_114.dylib
|
||||
|
||||
- name: Push gl4es
|
||||
if: github.event != 'pull_request' && github.ref_name == 'main' && steps.gl4es-cache.outputs.cache-hit != 'true'
|
||||
@@ -90,7 +74,7 @@ jobs:
|
||||
with:
|
||||
github_token: ${{secrets.GITHUB_TOKEN}}
|
||||
workflow: build.yml
|
||||
path: depends
|
||||
path: /Users/eilionoir/actions/prerequisites
|
||||
workflow_conclusion: success
|
||||
repo: PojavLauncherTeam/android-openjdk-build-multiarch
|
||||
branch: jre8-ios-jitjailed
|
||||
@@ -101,31 +85,67 @@ jobs:
|
||||
with:
|
||||
github_token: ${{secrets.GITHUB_TOKEN}}
|
||||
workflow: build.yml
|
||||
path: depends
|
||||
path: /Users/eilionoir/actions/prerequisites
|
||||
workflow_conclusion: success
|
||||
repo: PojavLauncherTeam/android-openjdk-build-multiarch
|
||||
branch: buildjre17
|
||||
name: jre17-ios-aarch64
|
||||
|
||||
build:
|
||||
name: Development build
|
||||
needs: deps
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- platform: 2
|
||||
platform_name: ios
|
||||
- platform: 3
|
||||
platform_name: iossimulator
|
||||
- platform: 7
|
||||
platform_name: tvos
|
||||
- platform: 8
|
||||
platform_name: tvossimulator
|
||||
|
||||
runs-on: MacStadium
|
||||
steps:
|
||||
- name: Remove work folders
|
||||
env:
|
||||
password: ${{ secrets.ELLIE_MINI_SECRET }}
|
||||
run: |
|
||||
echo "before"
|
||||
ls -lah ./
|
||||
echo $password | sudo -S rm -rf ./* || true
|
||||
echo $password | sudo -S rm -rf ./.??* || true
|
||||
echo "after"
|
||||
ls -lah ./
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout repository submodules
|
||||
run: git submodule update --init --recursive
|
||||
|
||||
- name: Build for ${{ matrix.platform_name }}
|
||||
env:
|
||||
password: ${{ secrets.ELLIE_MINI_SECRET }}
|
||||
run: |
|
||||
cp -r
|
||||
export PATH=/opt/procursus/bin:/opt/homebrew/bin:$PATH
|
||||
export NOSTDIN=1 SUDOPASS=$password RUNNER=1 SLIMMED=1
|
||||
cp /Users/eilionoir/actions/main-prerequisites
|
||||
gmake -j$(sysctl -n hw.ncpu) dsym PLATFORM=${{ matrix.platform }}
|
||||
|
||||
- name: Upload regular ipa
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: net.kdt.pojavlauncher.ipa
|
||||
path: artifacts/net.kdt.pojavlauncher-*.ipa
|
||||
name: net.kdt.pojavlauncher-${{ matrix.platform_name }}.ipa
|
||||
path: artifacts/net.kdt.pojavlauncher-*-${{ matrix.platform_name }}.ipa
|
||||
|
||||
- name: Upload slimmed ipa
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: net.kdt.pojavlauncher.slimmed.ipa
|
||||
path: artifacts/net.kdt.pojavlauncher.slimmed-*.ipa
|
||||
name: net.kdt.pojavlauncher.slimmed-${{ matrix.platform_name }}.ipa
|
||||
path: artifacts/net.kdt.pojavlauncher.slimmed-*-${{ matrix.platform_name }}.ipa
|
||||
|
||||
- name: Upload PojavLauncher.dSYM
|
||||
uses: actions/upload-artifact@v2
|
||||
|
||||
Reference in new issue
Block a user