Skip to content

Commit

Permalink
Add VoodooSMBus to zip in github actions instead of xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Oct 9, 2024
1 parent ea60182 commit fa01957
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 53 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,37 @@ jobs:
- name: CI Bootstrap
run: |
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1
- name: Link MacKernelSDK to VoodooSMBus
run: ln -s ${{ github.workspace }}/MacKernelSDK ${{ github.workspace }}/Dependencies/VoodooSMBus/MacKernelSDK
- name: Get Commit SHA
id: vars
run: |
echo "sha_short=$(git rev-parse --short=8 ${{ github.sha }})" >> $GITHUB_OUTPUT
- run: xcodebuild -scheme VoodooRMI -derivedDataPath build -configuration Debug
- run: xcodebuild -scheme VoodooRMI -derivedDataPath build -configuration Release

- name: Build Debug VSMB
run: xcodebuild -configuration Debug
working-directory: ${{ github.workspace }}/Dependencies/VoodooSMBus
- name: Build Release VSMB
run: xcodebuild -configuration Release
working-directory: ${{ github.workspace }}/Dependencies/VoodooSMBus

- name: Build Debug VRMI
run: xcodebuild -scheme VoodooRMI -derivedDataPath build -configuration Debug
- name: Build Release VRMI
run: xcodebuild -scheme VoodooRMI -derivedDataPath build -configuration Release

- name: Zip Release
working-directory: ${{ github.workspace }}/build/Build/Products/Release/
run: |
cp -r ${{ github.workspace }}/Dependencies/VoodooSMBus/build/Release/*.dSYM dSYM/ |
cp -r ${{ github.workspace }}/Dependencies/VoodooSMBus/build/Release/*.kext . |
zip -ur *.zip dSYM/ *.kext
- name: Zip Debug
working-directory: ${{ github.workspace }}/build/Build/Products/Debug/
run: |
cp -r ${{ github.workspace }}/Dependencies/VoodooSMBus/build/Debug/*.dSYM dSYM/ |
cp -r ${{ github.workspace }}/Dependencies/VoodooSMBus/build/Debug/*.kext . |
zip -ur *.zip dSYM/ *.kext
- uses: svenstaro/upload-release-action@v2
if: github.event_name == 'release'
with:
Expand Down
48 changes: 1 addition & 47 deletions VoodooRMI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,6 @@
remoteGlobalIDString = 6F4B4A8C24C1A0B80018F1F0;
remoteInfo = RMII2C;
};
EEDAAB152CB631B50063AA4A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = EEDAAB112CB631B50063AA4A /* VoodooSMBus.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = B3953FF922D8DBC100473323;
remoteInfo = VoodooSMBus;
};
EEDAAB172CB631D50063AA4A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = EEDAAB112CB631B50063AA4A /* VoodooSMBus.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B3953FF822D8DBC100473323;
remoteInfo = VoodooSMBus;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -134,7 +120,6 @@
EE83B6D9298B1B3F0025DF3A /* RMIPowerStates.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RMIPowerStates.h; sourceTree = "<group>"; };
EE83B709298C76380025DF3A /* RMIMessages.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RMIMessages.h; sourceTree = "<group>"; };
EE912ED1298C95390003DBFE /* RMIFunction.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = RMIFunction.cpp; sourceTree = "<group>"; };
EEDAAB112CB631B50063AA4A /* VoodooSMBus.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = VoodooSMBus.xcodeproj; path = Dependencies/VoodooSMBus/VoodooSMBus.xcodeproj; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -221,7 +206,6 @@
A4560EBD247F29EC0009CBE0 = {
isa = PBXGroup;
children = (
EEDAAB112CB631B50063AA4A /* VoodooSMBus.xcodeproj */,
A4560F02247F381B0009CBE0 /* Headers */,
A4560EC9247F29EC0009CBE0 /* VoodooRMI */,
A4560EC8247F29EC0009CBE0 /* Products */,
Expand Down Expand Up @@ -318,14 +302,6 @@
path = LinuxCompat;
sourceTree = "<group>";
};
EEDAAB122CB631B50063AA4A /* Products */ = {
isa = PBXGroup;
children = (
EEDAAB162CB631B50063AA4A /* VoodooSMBus.kext */,
);
name = Products;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -426,7 +402,6 @@
buildRules = (
);
dependencies = (
EEDAAB182CB631D50063AA4A /* PBXTargetDependency */,
6F4B4AA924C1AEEA0018F1F0 /* PBXTargetDependency */,
286587DD24C1426600E74848 /* PBXTargetDependency */,
);
Expand Down Expand Up @@ -463,12 +438,6 @@
mainGroup = A4560EBD247F29EC0009CBE0;
productRefGroup = A4560EC8247F29EC0009CBE0 /* Products */;
projectDirPath = "";
projectReferences = (
{
ProductGroup = EEDAAB122CB631B50063AA4A /* Products */;
ProjectRef = EEDAAB112CB631B50063AA4A /* VoodooSMBus.xcodeproj */;
},
);
projectRoot = "";
targets = (
A4560EC6247F29EC0009CBE0 /* VoodooRMI */,
Expand All @@ -478,16 +447,6 @@
};
/* End PBXProject section */

/* Begin PBXReferenceProxy section */
EEDAAB162CB631B50063AA4A /* VoodooSMBus.kext */ = {
isa = PBXReferenceProxy;
fileType = wrapper.cfbundle;
path = VoodooSMBus.kext;
remoteRef = EEDAAB152CB631B50063AA4A /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */

/* Begin PBXResourcesBuildPhase section */
286587D224C13D9600E74848 /* Resources */ = {
isa = PBXResourcesBuildPhase;
Expand Down Expand Up @@ -518,7 +477,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# From Acidanthera's VoodooPS2\ncd \"${TARGET_BUILD_DIR}\"\nrm -rf \"${FULL_PRODUCT_NAME}/Contents/PlugIns/VoodooInput.kext\"\nmkdir -p \"${FULL_PRODUCT_NAME}/Contents/PlugIns\"\ncp -r \"${PROJECT_DIR}/VoodooInput/${CONFIGURATION}\"/* \"${FULL_PRODUCT_NAME}/Contents/PlugIns/\"\ndist=(\"VoodooRMI.kext\" \"VoodooSMBus.kext\")\nif [ -d \"$DWARF_DSYM_FILE_NAME\" ]; then\n rm -rf dSYM\n mkdir dSYM\n mv \"$DWARF_DSYM_FILE_NAME\" dSYM/\n mv \"VoodooSMBus.kext.dSYM\" dSYM/\n find ${FULL_PRODUCT_NAME} -name *.dSYM -exec mv {} dSYM/ \\;\n dist+=(dSYM);\nfi\n\narchive=\"VoodooRMI-${CURRENT_PROJECT_VERSION}-$(echo $CONFIGURATION | tr /a-z/ /A-Z/).zip\"\nrm -rf *.zip\nzip -qry -FS \"${archive}\" \"${dist[@]}\"\n\n";
shellScript = "# From Acidanthera's VoodooPS2\ncd \"${TARGET_BUILD_DIR}\"\nrm -rf \"${FULL_PRODUCT_NAME}/Contents/PlugIns/VoodooInput.kext\"\nmkdir -p \"${FULL_PRODUCT_NAME}/Contents/PlugIns\"\ncp -r \"${PROJECT_DIR}/VoodooInput/${CONFIGURATION}\"/* \"${FULL_PRODUCT_NAME}/Contents/PlugIns/\"\ndist=(\"VoodooRMI.kext\")\nif [ -d \"$DWARF_DSYM_FILE_NAME\" ]; then\n rm -rf dSYM\n mkdir dSYM\n mv \"$DWARF_DSYM_FILE_NAME\" dSYM/\n find ${FULL_PRODUCT_NAME} -name *.dSYM -exec mv {} dSYM/ \\;\n dist+=(dSYM);\nfi\n\narchive=\"VoodooRMI-${CURRENT_PROJECT_VERSION}-$(echo $CONFIGURATION | tr /a-z/ /A-Z/).zip\"\nrm -rf *.zip\nzip -qry -FS \"${archive}\" \"${dist[@]}\"\n\n";
};
A4560EE8247F2CC00009CBE0 /* Bootstrap VoodooInput */ = {
isa = PBXShellScriptBuildPhase;
Expand Down Expand Up @@ -587,11 +546,6 @@
target = 6F4B4A8C24C1A0B80018F1F0 /* RMII2C */;
targetProxy = 6F4B4AA824C1AEEA0018F1F0 /* PBXContainerItemProxy */;
};
EEDAAB182CB631D50063AA4A /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = VoodooSMBus;
targetProxy = EEDAAB172CB631D50063AA4A /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
Expand Down

0 comments on commit fa01957

Please sign in to comment.