diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1425397 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,76 @@ +name: Build and Release Tweak + +on: + push: + paths: + - ".github/workflows/build.yml" + - "control" + workflow_dispatch: + +jobs: + build: + name: Build tweak + runs-on: macos-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install gmake + run: brew install make + + - name: Install theos/theos + run: bash -c "$(curl -fsSL 'https://raw.githubusercontent.com/theos/theos/master/bin/install-theos')" + + - name: Setup Theos environment + run: echo "THEOS=/Users/runner/theos" >> $GITHUB_ENV + + - name: Make debs directory + run: mkdir ~/debs + + - name: Build Ding rootful + run: | + gmake -j$(sysctl -n hw.ncpu) clean + gmake -j$(sysctl -n hw.ncpu) do THEOS_PACKAGE_SCHEME=rootful SYSROOT=$THEOS/sdks/iPhoneOS16.5.sdk + continue-on-error: true + + - name: Move rootful .deb + run: mv ./packages/*.deb ~/debs + + - name: Build Ding rootless + run: | + gmake -j$(sysctl -n hw.ncpu) clean + gmake -j$(sysctl -n hw.ncpu) do SYSROOT=$THEOS/sdks/iPhoneOS16.5.sdk + continue-on-error: true + + - name: Move rootless .deb + run: mv ./packages/*.deb ~/debs + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: ding + path: ~/debs/*.deb + + - name: Delete old release + uses: dev-drprasad/delete-tag-and-release@v0.2.1 + with: + delete_release: true + tag_name: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + continue-on-error: true + + - name: Get artifacts + uses: actions/download-artifact@v3 + with: + name: ding + path: ./artifacts/ + + - name: Create new rolling release + uses: ncipollo/release-action@v1 + with: + name: "Ding Release" + body: "`itsnebulalol/ding` built with GitHub Actions.\n\nRead the `README.md` to determine what changes were made, as per the `LICENSE`." + artifacts: "./artifacts/*.deb" + tag: release + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 91ac60d..b9ce5b4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,24 @@ +# dleovl says: +This is a fork of `itsnebulalol/ding` to incorporate a GitHub Actions workflow `.yml` for building without a Mac. As the `LICENSE` allows for distribution and modification, this repository can be made. The changes to the source are noted below, making it more reliable and safer than a piracy repository. The link to purchase the tweak is noted below, please do so if you want to support the developer. + +Builds for current-day `roothide` will not be available, as the architecture is quickly evolving. Please use the [RootHidePatcher](https://github.com/roothide/RootHidePatcher). + +If you want a `rootful` build, [buy Ding from Chariz](https://chariz.com/buy/ding). + +## Licensing + +The source is untouched, only `.github/workflows/build.yml` has been created for building, and this message created in `README.md`. + +At the time of writing, `itsnebulalol/ding` has a GNU General Public License v3.0 license, you can view it [here](https://github.com/itsnebulalol/ding/blob/main/LICENSE). This repository uses the same license. + +## Notes + +If you like Ding, [buy it on Chariz](https://chariz.com/buy/ding). Additionally, you can [sponsor the developer](https://github.com/sponsors/itsnebulalol), sponsoring the developer can enable the developer to create more quality products. + +Should any issues arise with the build automation of this repository, do ***NOT report it to the developer***. While the tweak **source** is untouched, oversights may occur from automated building. As there is no Issues tab, you can state your problems with the automation in a Pull Request. + +