Bump version to 2.5.0. #84
Workflow file for this run
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: 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 |