This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
bugfix: allows haptic engine to run in background #69
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: Analyse Commands | |
on: | |
push: | |
branches: | |
- main | |
env: | |
THEOS: '' | |
GIT_TAG: '' | |
GIT_COMMIT: '' | |
XCODE_VERSION: '14.3.1' | |
jobs: | |
build: | |
name: Build and generate compilation database | |
runs-on: macos-13 | |
steps: | |
- name: Setup Xcode version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: ${{ env.XCODE_VERSION }} | |
- name: Install Homebrew dependencies | |
run: | | |
HOMEBREW_NO_AUTO_UPDATE=1 brew install dpkg ldid make libplist openssl@3 | |
echo "/usr/local/opt/make/libexec/gnubin" >> $GITHUB_PATH | |
- name: Checkout XXTouchNG/theos | |
uses: actions/checkout@v4 | |
with: | |
repository: XXTouchNG/theos | |
ref: 78ee784d8d3238982c9abdc58cd39919263648b1 | |
path: theos | |
submodules: recursive | |
- name: Add THEOS environment variables | |
run: | | |
rm -rf $GITHUB_WORKSPACE/theos/sdks | |
echo "THEOS=$GITHUB_WORKSPACE/theos" >> $GITHUB_ENV | |
- name: Restore additional SDKs | |
id: cached-sdks-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: ${{ env.THEOS }}/sdks | |
key: ${{ runner.os }}-sdks-${{ env.XCODE_VERSION }} | |
- if: ${{ steps.cached-sdks-restore.outputs.cache-hit != 'true' }} | |
name: Checkout theos/sdks | |
uses: actions/checkout@v4 | |
with: | |
repository: theos/sdks | |
ref: master | |
path: ${{ env.THEOS }}/sdks | |
- if: ${{ steps.cached-sdks-restore.outputs.cache-hit != 'true' }} | |
name: Checkout XXTouchNG/tbd | |
uses: actions/checkout@v4 | |
with: | |
repository: XXTouchNG/tbd | |
ref: 30a6883092221e13d814c02ac41af1e565a40617 | |
path: tbd | |
- if: ${{ steps.cached-sdks-restore.outputs.cache-hit != 'true' }} | |
name: Build tbd | |
run: | | |
cd $GITHUB_WORKSPACE/tbd | |
make | |
cp bin/tbd /usr/local/bin/tbd | |
- if: ${{ steps.cached-sdks-restore.outputs.cache-hit != 'true' }} | |
name: Generate additional SDKs | |
run: | | |
cd $THEOS/sdks | |
python3 create_patched_sdk.py --no-overwrite -x $(dirname $(dirname $(xcode-select -p))) | |
- if: ${{ steps.cached-sdks-restore.outputs.cache-hit != 'true' }} | |
name: Save additional SDKs | |
id: cached-sdks-save | |
uses: actions/cache/save@v4 | |
with: | |
path: ${{ env.THEOS }}/sdks | |
key: ${{ steps.cached-sdks-restore.outputs.cache-primary-key }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: Lessica/TrollSpeed | |
ref: main | |
path: TrollSpeed | |
submodules: recursive | |
- name: Setup build environment | |
run: | | |
echo "Available SDKs: $(find $THEOS/sdks -name "*.sdk" -maxdepth 1 -print)" | |
echo "FINALPACKAGE=1" >> $GITHUB_ENV | |
cd $GITHUB_WORKSPACE/TrollSpeed | |
git fetch --tags | |
echo "GIT_TAG=$(git describe --tags --always --abbrev=0)" >> $GITHUB_ENV | |
- name: Build compilation database | |
run: | | |
cd $GITHUB_WORKSPACE/TrollSpeed | |
./gen-control.sh ${{ env.GIT_TAG }} | |
THEOS_PACKAGE_SCHEME=rootless make commands | |
make clean | |
make commands |