Added SYSROOT to Build package just to be sure #14
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: Checkout SDKs | |
uses: actions/checkout@main | |
with: | |
repository: theos/sdks | |
ref: master | |
sparse-checkout: iPhoneOS16.5.sdk | |
path: $THEOS/sdks | |
- 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 | |
run: | | |
rm -f packages/* | |
make package FINALPACKAGE=1 SYSROOT=$(THEOS)/sdks/iPhoneOS16.5.sdk | |
- name: Upload package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "Package built by ${{ matrix.os }}" | |
path: ${{ github.workspace }}/packages/*.deb |