Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project: fix GitHub Actions #210

Merged
merged 3 commits into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 22 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,31 @@ jobs:
# 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
- uses: actions/checkout@v4
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
uses: sersoft-gmbh/xcodebuild-action@v3.2.0
with:
project: YogaSMC.xcodeproj
# scheme: # optional
# destination: # optional
configuration: Debug
build-settings: -target BuildAll
build-settings: ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO MACOSX_DEPLOYMENT_TARGET=10.14.4
target: BuildAll
action: build
- name: Xcodebuild Release
uses: sersoft-gmbh/xcodebuild-action@v1
uses: sersoft-gmbh/xcodebuild-action@v3.2.0
with:
project: YogaSMC.xcodeproj
# destination: # optional
configuration: Release
build-settings: -target BuildAll
build-settings: ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO MACOSX_DEPLOYMENT_TARGET=10.14.4
target: BuildAll
action: build
- name: Prepare release image
run: |
Expand All @@ -63,15 +65,15 @@ jobs:
ln -s /Applications build/Debug-App/
cp -r YogaSMC/SSDTSample build/Debug/
- name: Upload debug kext
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: YogaSMC-Debug
path: |
build/Debug/*.kext
build/Debug/LICENSE
build/Debug/SSDTSample
- name: Upload release kext
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: YogaSMC-Release
path: |
Expand All @@ -84,17 +86,17 @@ jobs:
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
uses: actions/upload-artifact@v4
with:
name: YogaSMC-App-Debug
path: build/YogaSMC-App-Debug.dmg
- name: Upload release app
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: YogaSMC-App-Release
path: build/YogaSMC-App-Release.dmg
- name: Upload release dSYM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: YogaSMC-Release-dSYM
path: |
Expand All @@ -103,26 +105,26 @@ jobs:
analyze:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
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
uses: sersoft-gmbh/xcodebuild-action@v3.2.0
with:
project: YogaSMC.xcodeproj
configuration: Debug
build-settings: -target BuildAll ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO MACOSX_DEPLOYMENT_TARGET=10.14.4
target: BuildAll
action: analyze
- name: Xcodebuild Release Analyze
uses: sersoft-gmbh/xcodebuild-action@v1
uses: sersoft-gmbh/xcodebuild-action@v3.2.0
with:
project: YogaSMC.xcodeproj
configuration: Release
build-settings: -target BuildAll ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO MACOSX_DEPLOYMENT_TARGET=10.14.4
target: BuildAll
action: analyze
- name: Prepare release image
run: |
Expand All @@ -141,15 +143,15 @@ jobs:
ln -s /Applications build/Debug-App/
cp -r YogaSMC/SSDTSample build/Debug/
- name: Upload debug kext
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: YogaSMC-Debug-12
path: |
build/Debug/*.kext
build/Debug/LICENSE
build/Debug/SSDTSample
- name: Upload release kext
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: YogaSMC-Release-12
path: |
Expand All @@ -162,17 +164,17 @@ jobs:
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
uses: actions/upload-artifact@v4
with:
name: YogaSMC-App-Debug-12
path: build/YogaSMC-App-Debug-12.dmg
- name: Upload release app
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: YogaSMC-App-Release-12
path: build/YogaSMC-App-Release-12.dmg
- name: Upload release dSYM
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: YogaSMC-Release-dSYM-12
path: |
Expand Down