Skip to content

Add support for Gale Peak (8087:0036) #78

Add support for Gale Peak (8087:0036)

Add support for Gale Peak (8087:0036) #78

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Get Lilu SHA
id: get-lilu-sha
run: |
echo "::set-output name=hash::$(git ls-remote https://github.com/acidanthera/Lilu.git HEAD | awk '{ print $1 }')"
- name: Cache Lilu
id: cache-lilu
uses: actions/cache@v3
with:
path: Lilu.kext
key: Lilu-${{ steps.get-lilu-sha.outputs.hash }}
- name: Install MacKernelSDK
run: |
git clone --depth=1 https://github.com/acidanthera/MacKernelSDK.git
- name: Install Lilu SDK
if: steps.cache-lilu.outputs.cache-hit != 'true'
run: |
git clone --depth=1 https://github.com/acidanthera/Lilu.git
cd Lilu || exit 1
ln -s ../MacKernelSDK MacKernelSDK
xcodebuild -configuration Debug -arch x86_64 | xcpretty && ret=${PIPESTATUS[0]}
if [[ $ret -ne 0 || ! -d build/Debug/Lilu.kext ]]; then
exit 1
fi
cp -R build/Debug/Lilu.kext ../
- name: Debug Build
run: |
xcodebuild -alltargets -configuration Debug | xcpretty && exit ${PIPESTATUS[0]}
- name: Release Build
run: |
xcodebuild -alltargets -configuration Release | xcpretty && exit ${PIPESTATUS[0]}
- name: Upload to Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}
path: build/*/*.zip
if-no-files-found: error