Attempting to build for both rootless & rootful on the workflow #16
This file contains 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: Build iOS Tweak with Theos | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Check cache | |
run: | | |
echo upstream_heads=`git ls-remote https://github.com/theos/theos | head -n 1 | cut -f 1`-`git ls-remote https://github.com/theos/sdks | head -n 1 | cut -f 1` >> $GITHUB_ENV | |
- name: Use cache | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/theos | |
key: ${{ runner.os }}-${{ env.upstream_heads }} | |
- name: Prepare Theos | |
uses: Randomblock1/theos-action@v1 | |
- name: Install CCSupport | |
run: | | |
git clone https://github.com/opa334/CCSupportTemplates.git $HOME/CCSupportTemplates | |
cd $HOME/CCSupportTemplates/ | |
chmod +x install.sh | |
./install.sh | |
echo "Should be done installing CCSupport" | |
- name: Build package (rootless) | |
run: | | |
rm -f packages/* | |
make package FINALPACKAGE=1 SYSROOT=$THEOS/sdks/iPhoneOS16.5.sdk THEOS_PACKAGE_SCHEME=rootless | |
- name: Build package (rootful) | |
run: | | |
rm -f packages/* | |
make package FINALPACKAGE=1 SYSROOT=$THEOS/sdks/iPhoneOS16.5.sdk THEOS_PACKAGE_SCHEME=rootful | |
- name: Upload package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "Package built by ${{ matrix.os }}" | |
path: ${{ github.workspace }}/packages/*.deb |