Skip to content

Fix support for iPadOS 16.1b1 - 16.1b4 and iOS 16.1b1 - 16.1b3 #519

Fix support for iPadOS 16.1b1 - 16.1b4 and iOS 16.1b1 - 16.1b3

Fix support for iPadOS 16.1b1 - 16.1b4 and iOS 16.1b1 - 16.1b3 #519

Workflow file for this run

name: "Dopamine: build and upload"
on:
push:
branches:
- '*'
paths-ignore:
- ".gitignore"
pull_request:
branches:
- '*'
paths-ignore:
- ".gitignore"
workflow_dispatch:
schedule:
- cron: '0 0 1 1 *'
- cron: '0 0 1 4 *'
- cron: '0 0 30 6 *'
- cron: '0 0 28 9 *'
- cron: '0 0 27 12 *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
steps:
- name: Xcode Setup
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Checkout
uses: actions/checkout@main
with:
submodules: recursive
- name: Install Procursus
uses: dhinakg/procursus-action@main
with:
packages: ldid findutils sed coreutils make
- name: Install better GNU Make
run: |
brew install make
echo "PATH=$(brew --prefix make)/libexec/gnubin:$PATH" >> $GITHUB_ENV
- name: Install THEOS
run: |
set -x
export BASEDIR="$(pwd)"
export THEOS="${BASEDIR}/theos"
mkdir -p $THEOS
curl -fsSL https://raw.githubusercontent.com/theos/theos/master/bin/install-theos >> install-theos.sh
gsed -E "/^\s*get_theos\s*$/,+1 s/^(\s*)(get_sdks)\s*$/\1mkdir -p \${THEOS}\/sdks\n\1touch \${THEOS}\/sdks\/sdk\n\1\2/g" -i install-theos.sh
bash install-theos.sh
curl -L https://github.com/theos/sdks/releases/latest/download/iPhoneOS16.5.sdk.tar.xz --output $THEOS/sdks/iPhoneOS16.5.sdk.tar.xz
gunzip $THEOS/sdks/iPhoneOS16.5.sdk.tar.xz
tar -xf $THEOS/sdks/iPhoneOS16.5.sdk.tar -C $THEOS/sdks
rm $THEOS/sdks/iPhoneOS16.5.sdk.tar
cd $BASEDIR
- name: Build and Install trustcache
run: |
set -x
git clone https://github.com/CRKatri/trustcache
cd trustcache
export CFLAGS="$CFLAGS -I$(brew --prefix openssl)/include -arch arm64"
export LDFLAGS="$LDFLAGS -L$(brew --prefix openssl)/lib -arch arm64"
gmake -j$(sysctl -n hw.logicalcpu) OPENSSL=1
sudo cp trustcache /opt/procursus/bin/
- name: Set Environment Variables
run: |
set -x
T2=$(TZ=UTC-2 date +'%Y%m%d_%H%M%S')
TS=$(date -j -f "%Y%m%d_%H%M%S" "${T2}" +%s)
SHASH=$(git rev-parse --short HEAD)
echo "ctime=${T2}" >> $GITHUB_ENV
echo "ctimestamp=${TS}" >> $GITHUB_ENV
echo "shorthash=${SHASH}" >> $GITHUB_ENV
- name: Install libarchive
run: |
brew install libarchive
- name: Download Bootstraps
run: |
set -x
cd Application/Dopamine/Resources
./download_bootstraps.sh
- name: Build
run: |
set -x
export BASEDIR="$(pwd)"
export THEOS="${BASEDIR}/theos"
gmake -j$(sysctl -n hw.logicalcpu) NIGHTLY=1
- name: Upload Artifact
id: dopamine-latest-upload
uses: actions/upload-artifact@main
with:
name: Dopamine
path: |
${{ github.workspace }}/Application/Dopamine.ipa