bro Why is this so hard to get right Hopefully this works Maybe this will work? install sed also install fakeroot remove space
86 lines
3.0 KiB
YAML
86 lines
3.0 KiB
YAML
name: iOS build
|
|
|
|
on:
|
|
[push, workflow_dispatch]
|
|
|
|
jobs:
|
|
build:
|
|
name: The guts
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- name: Set up cache
|
|
uses: actions/cache@v2
|
|
id: procache
|
|
with:
|
|
path: |
|
|
~/__cache
|
|
key: ${{ runner.os }}-procursus
|
|
|
|
- name: Set up build environment
|
|
uses: maxim-lobanov/setup-xcode@v1
|
|
with:
|
|
xcode-version: '12.4.0'
|
|
|
|
- name: Set up build environment pt. II
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up build environment pt. III
|
|
run: git submodule update --init --recursive
|
|
|
|
- name: Set up build environment pt. IV (Install)
|
|
if: steps.procache.outputs.cache-hit != 'true'
|
|
run: |
|
|
wget https://apt.procurs.us/bootstrap_darwin-amd64.tar.zst
|
|
sudo gtar --preserve-permissions -xkf ./bootstrap_darwin-amd64.tar.zst -C /
|
|
echo '/opt/procursus/sbin:/opt/procursus/bin' >> $GITHUB_PATH
|
|
PATH=/opt/procursus/sbin:/opt/procursus/bin:$PATH sudo /opt/procursus/bin/apt-get update
|
|
sudo /opt/procursus/bin/apt-get -V dist-upgrade -y || :
|
|
sudo /opt/procursus/bin/apt-get -V dist-upgrade -y
|
|
sudo /opt/procursus/bin/apt-get install ldid make sed fakeroot -y
|
|
|
|
- name: Set up build environment pt. V
|
|
run: |
|
|
echo '/opt/procursus/sbin:/opt/procursus/bin' >> $GITHUB_PATH
|
|
|
|
- name: Set up build environment pt. IV (cache)
|
|
if: steps.procache.outputs.cache-hit == 'true'
|
|
run: |
|
|
sudo mkdir -p ~/__cache/procursus/var/cache/apt/archives/partial ~/__cache/procursus/var/lib/apt/lists/partial
|
|
sudo rsync -aP ~/__cache/procursus /opt
|
|
sudo /opt/procursus/bin/apt-get update
|
|
sudo /opt/procursus/bin/apt-get -V dist-upgrade -y
|
|
sudo /opt/procursus/bin/apt-get -V dist-upgrade -y
|
|
|
|
- name: Build the native application
|
|
run: gmake -j$(sysctl -n hw.ncpu) native
|
|
|
|
- name: Build the Java application
|
|
run: gmake -j$(sysctl -n hw.ncpu) java
|
|
|
|
- name: Build the assets and Storyboards
|
|
run: gmake -j$(sysctl -n hw.ncpu) extras
|
|
|
|
- name: Build the Debian package
|
|
run: gmake -j$(sysctl -n hw.ncpu) package
|
|
|
|
- name: Generate dSYM for libpojavexec
|
|
run: dsymutil --arch arm64 Natives/build/libpojavexec.dylib
|
|
|
|
- name: Upload build artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: pojavlauncher_iphoneos-arm.deb
|
|
path: packages/pojavlauncher_iphoneos-arm.deb
|
|
|
|
- name: Upload libpojavexec.dylib.dSYM
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: libpojavexec.dylib.dSYM
|
|
path: Natives/build/libpojavexec.dylib.dSYM
|
|
|
|
- name: Copy Procursus to Cache Location
|
|
run: |
|
|
sudo mkdir -p ~/__cache
|
|
sudo rsync -aP /opt/procursus ~/__cache
|
|
sudo rm -rf ~/__cache/procursus/var/cache/apt/archives/partial ~/__cache/procursus/var/lib/apt/lists/partial ~/__cache/procursus/Library/dpkg/triggers/Lock
|