Skip to content

YogaHIDD: fix button load method to enable HID power button #859

YogaHIDD: fix button load method to enable HID power button

YogaHIDD: fix button load method to enable HID power button #859

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Download MacKernelSDK
run: git clone --depth 1 https://github.com/acidanthera/MacKernelSDK.git
- name: Download Lilu / VirtualSMC SDK (script from hieplpvip/AsusSMC (Acidanthera/Lilu))
run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/hieplpvip/AsusSMC/master/Scripts/bootstrap.sh) && eval "$src" || exit 1
- name: Xcodebuild Debug
uses: sersoft-gmbh/xcodebuild-action@v1
with:
project: YogaSMC.xcodeproj
# scheme: # optional
# destination: # optional
configuration: Debug
build-settings: -target BuildAll
action: build
- name: Xcodebuild Release
uses: sersoft-gmbh/xcodebuild-action@v1
with:
project: YogaSMC.xcodeproj
# destination: # optional
configuration: Release
build-settings: -target BuildAll
action: build
- name: Prepare release image
run: |
mkdir build/Release-App
mv build/Release/YogaSMCNC.app build/Release-App/
mv build/Release/YogaSMCPane.prefPane build/Release-App/
cp LICENSE build/Release-App/
ln -s /Applications build/Release-App/
cp -r YogaSMC/SSDTSample build/Release/
- name: Prepare debug image
run: |
mkdir build/Debug-App
mv build/Debug/YogaSMCNC.app build/Debug-App/
mv build/Debug/YogaSMCPane.prefPane build/Debug-App/
cp LICENSE build/Debug-App/
ln -s /Applications build/Debug-App/
cp -r YogaSMC/SSDTSample build/Debug/
- name: Upload debug kext
uses: actions/upload-artifact@v2
with:
name: YogaSMC-Debug
path: |
build/Debug/*.kext
build/Debug/LICENSE
build/Debug/SSDTSample
- name: Upload release kext
uses: actions/upload-artifact@v2
with:
name: YogaSMC-Release
path: |
build/Release/*.kext
build/Release/LICENSE
build/Release/SSDTSample
- name: Create DMG image
run: |
brew install create-dmg
create-dmg --no-internet-enable --sandbox-safe --window-size 450 450 build/YogaSMC-App-Debug.dmg build/Debug-App/
create-dmg --no-internet-enable --sandbox-safe --window-size 450 450 build/YogaSMC-App-Release.dmg build/Release-App/
- name: Upload debug app
uses: actions/upload-artifact@v2
with:
name: YogaSMC-App-Debug
path: build/YogaSMC-App-Debug.dmg
- name: Upload release app
uses: actions/upload-artifact@v2
with:
name: YogaSMC-App-Release
path: build/YogaSMC-App-Release.dmg
- name: Upload release dSYM
uses: actions/upload-artifact@v2
with:
name: YogaSMC-Release-dSYM
path: |
build/Release/*.dSYM
build/Release/LICENSE
analyze:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Download MacKernelSDK
run: git clone --depth 1 https://github.com/acidanthera/MacKernelSDK.git
- name: Download Lilu / VirtualSMC SDK (script from hieplpvip/AsusSMC (Acidanthera/Lilu))
run: src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/hieplpvip/AsusSMC/master/Scripts/bootstrap.sh) && eval "$src" || exit 1
- name: Xcodebuild Debug Analyze
uses: sersoft-gmbh/xcodebuild-action@v1
with:
project: YogaSMC.xcodeproj
configuration: Debug
build-settings: -target BuildAll ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO MACOSX_DEPLOYMENT_TARGET=10.14.4
action: analyze
- name: Xcodebuild Release Analyze
uses: sersoft-gmbh/xcodebuild-action@v1
with:
project: YogaSMC.xcodeproj
configuration: Release
build-settings: -target BuildAll ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO MACOSX_DEPLOYMENT_TARGET=10.14.4
action: analyze
- name: Prepare release image
run: |
mkdir build/Release-App
mv build/Release/YogaSMCNC.app build/Release-App/
mv build/Release/YogaSMCPane.prefPane build/Release-App/
cp LICENSE build/Release-App/
ln -s /Applications build/Release-App/
cp -r YogaSMC/SSDTSample build/Release/
- name: Prepare debug image
run: |
mkdir build/Debug-App
mv build/Debug/YogaSMCNC.app build/Debug-App/
mv build/Debug/YogaSMCPane.prefPane build/Debug-App/
cp LICENSE build/Debug-App/
ln -s /Applications build/Debug-App/
cp -r YogaSMC/SSDTSample build/Debug/
- name: Upload debug kext
uses: actions/upload-artifact@v2
with:
name: YogaSMC-Debug-12
path: |
build/Debug/*.kext
build/Debug/LICENSE
build/Debug/SSDTSample
- name: Upload release kext
uses: actions/upload-artifact@v2
with:
name: YogaSMC-Release-12
path: |
build/Release/*.kext
build/Release/LICENSE
build/Release/SSDTSample
- name: Create DMG image
run: |
brew install create-dmg
create-dmg --no-internet-enable --sandbox-safe --window-size 450 450 build/YogaSMC-App-Debug-12.dmg build/Debug-App/
create-dmg --no-internet-enable --sandbox-safe --window-size 450 450 build/YogaSMC-App-Release-12.dmg build/Release-App/
- name: Upload debug app
uses: actions/upload-artifact@v2
with:
name: YogaSMC-App-Debug-12
path: build/YogaSMC-App-Debug-12.dmg
- name: Upload release app
uses: actions/upload-artifact@v2
with:
name: YogaSMC-App-Release-12
path: build/YogaSMC-App-Release-12.dmg
- name: Upload release dSYM
uses: actions/upload-artifact@v2
with:
name: YogaSMC-Release-dSYM-12
path: |
build/Release/*.dSYM
build/Release/LICENSE