-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
166 additions
and
106 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,76 @@ | ||
name: tests | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
env: | ||
# rel, pre, mod | ||
OCVER: pre | ||
|
||
jobs: | ||
test-and-cover: | ||
runs-on: macos-12 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
|
||
- name: Initialization environment | ||
run : | | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
sudo systemsetup -settimezone "Asia/Shanghai" | ||
#- uses: brokeyourbike/[email protected] | ||
# with: | ||
# opencore-version: '0.8.6' | ||
# release: true | ||
# | ||
#- run: | | ||
# ocvalidate "EFI/OC/config.plist" || exit 1 | ||
# ocvalidate "EFI/OC/config_iGPU.plist" || exit 1 | ||
# ocvalidate "EFI/OC/config_RX5700XT.plist" || exit 1 | ||
# ocvalidate "EFI/OC/config_RX5700XT&iGPU.plist" || exit 1 | ||
|
||
- name: Get OC-Mod | ||
run: | | ||
brew install jq | ||
if [ $OCVER == 'rel' ]; then | ||
url="https://api.github.com/repos/acidanthera/OpenCorePkg/releases/latest" | ||
elif [ $OCVER == 'pre' ]; then | ||
url="https://api.github.com/repos/dortania/build-repo/releases/latest" | ||
else | ||
url="https://api.github.com/repos/wjz304/OpenCore_NO_ACPI_Build/releases/latest" | ||
fi | ||
ocdownloadurl=$(curl -L ${url} | jq -r .assets[1].browser_download_url) | ||
curl -L ${ocdownloadurl} -o oc.zip | ||
unzip oc.zip -d oc | ||
- name: OC Validate | ||
run: | | ||
oc/Utilities/ocvalidate/ocvalidate "EFI/OC/config.plist" || exit 1 | ||
oc/Utilities/ocvalidate/ocvalidate "EFI/OC/config_iGPU.plist" || exit 1 | ||
oc/Utilities/ocvalidate/ocvalidate "EFI/OC/config_RX5700XT.plist" || exit 1 | ||
oc/Utilities/ocvalidate/ocvalidate "EFI/OC/config_RX5700XT&iGPU.plist" || exit 1 | ||
#- name: Delete workflow runs | ||
# uses: Mattraks/delete-workflow-runs@v2 | ||
# with: | ||
# retain_days: 1 | ||
name: tests | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
env: | ||
# rel, pre, mod | ||
OCVER: pre | ||
|
||
jobs: | ||
test-and-cover: | ||
name: macOS XCODE5 | ||
runs-on: macos-latest | ||
env: | ||
JOB_TYPE: BUILD | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
steps: | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.3' | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@main | ||
|
||
- name: Initialization environment | ||
run : | | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
sudo systemsetup -settimezone "Asia/Shanghai" | ||
#- uses: brokeyourbike/[email protected] | ||
# with: | ||
# opencore-version: '0.8.6' | ||
# release: true | ||
# | ||
#- run: | | ||
# ocvalidate "EFI/OC/config.plist" || exit 1 | ||
# ocvalidate "EFI/OC/config_iGPU.plist" || exit 1 | ||
# ocvalidate "EFI/OC/config_RX5700XT.plist" || exit 1 | ||
# ocvalidate "EFI/OC/config_RX5700XT&iGPU.plist" || exit 1 | ||
|
||
- name: Get OC-Mod | ||
run: | | ||
# brew install jq # Warning: jq 1.7.1 is already installed and up-to-date. | ||
if [ $OCVER == 'rel' ]; then | ||
url="https://api.github.com/repos/acidanthera/OpenCorePkg/releases/latest" | ||
elif [ $OCVER == 'pre' ]; then | ||
url="https://api.github.com/repos/dortania/build-repo/releases/latest" | ||
else | ||
url="https://api.github.com/repos/wjz304/OpenCore_NO_ACPI_Build/releases/latest" | ||
fi | ||
ocdownloadurl=$(curl -L ${url} | jq -r .assets[1].browser_download_url) | ||
curl -L ${ocdownloadurl} -o oc.zip | ||
unzip oc.zip -d oc | ||
- name: OC Validate | ||
run: | | ||
oc/Utilities/ocvalidate/ocvalidate "EFI/OC/config.plist" || exit 1 | ||
oc/Utilities/ocvalidate/ocvalidate "EFI/OC/config_iGPU.plist" || exit 1 | ||
oc/Utilities/ocvalidate/ocvalidate "EFI/OC/config_RX5700XT.plist" || exit 1 | ||
oc/Utilities/ocvalidate/ocvalidate "EFI/OC/config_RX5700XT&iGPU.plist" || exit 1 | ||
#- name: Delete workflow runs | ||
# uses: Mattraks/delete-workflow-runs@v2 | ||
# with: | ||
# retain_days: 1 | ||
# keep_minimum_runs: 3 |
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
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
Binary file modified
BIN
-14.4 KB
(74%)
EFI/OC/Kexts/IntelBTPatcher.kext/Contents/MacOS/IntelBTPatcher
Binary file not shown.
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
Binary file modified
BIN
-13.5 KB
(100%)
EFI/OC/Kexts/IntelBluetoothFirmware.kext/Contents/MacOS/IntelBluetoothFirmware
Binary file not shown.
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
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
Oops, something went wrong.