Skip to content
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
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ jobs:
run: |
set -euo pipefail
mkdir -p artifacts
products="$PWD/build/products/$CONFIGURATION"
products="$PWD/build/products"
# The target's PRODUCT_NAME is VoodooHDA_BL, so locate the kext instead of hardcoding it.
kext_path=$(find "$products" -maxdepth 3 -name '*.kext' -type d -print -quit)
if [[ -z "$kext_path" ]]; then
echo "::error::No .kext bundle found under $products"
find "$products" -maxdepth 4 || true
exit 1
fi
Comment on lines +60 to +65
version=$(awk '/CURRENT_PROJECT_VERSION =/ {gsub(/;/, "", $3); print $3; exit}' tranc/VoodooHDA_BL.xcodeproj/project.pbxproj)
if [[ -z "$version" ]]; then
echo "::error::Could not determine CURRENT_PROJECT_VERSION from project.pbxproj"
Expand All @@ -64,7 +71,7 @@ jobs:
short_sha=$(git rev-parse --short HEAD)
configuration=$(printf '%s' "$CONFIGURATION" | tr '[:lower:]' '[:upper:]')
suffix="v$version-$configuration-alpha-$short_sha"
ditto -c -k --keepParent "$products/VoodooHDA.kext" "artifacts/VoodooHDA-$suffix.zip"
ditto -c -k --keepParent "$kext_path" "artifacts/VoodooHDA-$suffix.zip"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: VoodooHDA
Expand Down
Loading