65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
name: Theos CI
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Theos Setup (Check Cache)
|
|
id: verify-cache
|
|
run: |
|
|
echo "::set-output name=heads::`git ls-remote https://github.com/roothide/theos | head -n 1 | cut -f 1`-`git ls-remote https://github.com/xybp888/iOS-SDKs | head -n 1 | cut -f 1`"
|
|
|
|
- name: Theos Setup (Use Cache)
|
|
id: cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ${{ github.workspace }}/theos
|
|
key: ${{ runner.os }}-${{ steps.verify-cache.outputs.heads }}
|
|
|
|
- name: Theos Setup (Setup)
|
|
uses: NyaMisty/theos-action@master
|
|
with:
|
|
theos-src: https://github.com/roothide/theos
|
|
theos-sdks: https://github.com/xybp888/iOS-SDKs
|
|
|
|
- name: Get tag
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
id: tag
|
|
uses: dawidd6/action-get-tag@v1
|
|
|
|
- name: Build Release package - Rootful
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
run: |
|
|
cd screendumpLowFrame
|
|
make clean
|
|
TAGNAME=${{ steps.tag.outputs.tag }}
|
|
make package FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}-rootful
|
|
- name: Build Release package - Rootless
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
run: |
|
|
cd screendumpLowFrame
|
|
make clean
|
|
TAGNAME=${{ steps.tag.outputs.tag }}
|
|
make package THEOS_PACKAGE_SCHEME=rootless FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}-rootless
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
with:
|
|
files: |
|
|
${{ github.workspace }}/screendumpLowFrame/packages/*.deb
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|