From ed2e4f51a1a6f165df452ba6d297575e372d1c63 Mon Sep 17 00:00:00 2001 From: khanhduytran0 Date: Sat, 2 Mar 2024 11:59:50 +0700 Subject: [PATCH] Setup GitHub Actions --- .github/workflows/build.yml | 44 +++++++++++++++++++++++++++++++++++++ Makefile | 3 +-- TrollPadPrefs/Makefile | 2 -- Tweak.x | 1 - control | 1 - 5 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1277e09 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,44 @@ +name: Theos CI + +on: + push: + pull_request: + +jobs: + build: + + runs-on: macos-14 + + steps: + - uses: actions/checkout@v3 + + - name: Checkout theos/theos + uses: actions/checkout@main + with: + repository: theos/theos + ref: master + submodules: recursive + path: theos + + - name: Checkout chrisharper22/sdks + uses: actions/checkout@main + with: + repository: theos/sdks + ref: master + sparse-checkout: iPhoneOS16.5.sdk + path: theos/sdks + + - name: Build + run: | + brew install make xz ldid + export THEOS=theos + + # make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootful + make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless + # make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=roothide + + - name: Upload packages + uses: actions/upload-artifact@v3 + with: + name: packages + path: packages/*.deb diff --git a/Makefile b/Makefile index 85242b9..07e6966 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ ARCHS := arm64 arm64e -TARGET := iphone:clang:latest:15.0 +TARGET := iphone:clang:16.5:15.0 INSTALL_TARGET_PROCESSES = SpringBoard -THEOS_PACKAGE_SCHEME := rootless include $(THEOS)/makefiles/common.mk # TARGET_CODESIGN = fastPathSign diff --git a/TrollPadPrefs/Makefile b/TrollPadPrefs/Makefile index a6c41c5..4eb35d6 100644 --- a/TrollPadPrefs/Makefile +++ b/TrollPadPrefs/Makefile @@ -1,5 +1,3 @@ -TARGET := iphone:clang:latest:15.0 - include $(THEOS)/makefiles/common.mk BUNDLE_NAME = TrollPad diff --git a/Tweak.x b/Tweak.x index fc61662..984ecad 100644 --- a/Tweak.x +++ b/Tweak.x @@ -7,7 +7,6 @@ #include #include #include -#include #include // #define DEBUG_LOG_IDIOM diff --git a/control b/control index 79c7d6f..b5367d4 100644 --- a/control +++ b/control @@ -7,4 +7,3 @@ Maintainer: khanhduytran0 Author: khanhduytran0 Section: Tweaks Depends: mobilesubstrate (>= 0.9.5000), firmware (>= 15.0), plistbuddy -Recommends: oldabi