Skip to content

Commit

Permalink
Use xcbeautify in mac github builds, and upload full build logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Oct 12, 2024
1 parent 6f962ee commit ca58311
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/macbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mac
path: osx/build/Release/*.zip
name: deadbeef-macos-universal
path: osx/build/Release/DeaDBeeF.app
- name: Upload logs
uses: actions/upload-artifact@v4
with:
name: build-logs
path: osx/build/Release/*.log
8 changes: 4 additions & 4 deletions travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ case "$TRAVIS_OS_NAME" in
;;
osx)
echo gem install xcpretty ...
gem install xcpretty 1> /dev/null 2> /dev/null
brew install xcbeautify 1> /dev/null 2> /dev/null
VERSION=`tr -d '\r' < PORTABLE_VERSION`
/usr/libexec/PlistBuddy -c "Set CFBundleShortVersionString $VERSION" plugins/cocoaui/deadbeef-Info.plist
rev=`git rev-parse --short HEAD`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $rev" plugins/cocoaui/deadbeef-Info.plist
xcodebuild "MACOSX_DEPLOYMENT_TARGET=10.13" test -project osx/deadbeef.xcodeproj -scheme deadbeef -configuration Release | xcpretty -t ; test ${PIPESTATUS[0]} -eq 0
xcodebuild "MACOSX_DEPLOYMENT_TARGET=10.13" -project osx/deadbeef.xcodeproj -target DeaDBeeF -configuration Release -quiet | xcpretty ; test ${PIPESTATUS[0]} -eq 0
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $rev" plugins/cocoaui/deadbeef-Info.plist
xcodebuild "MACOSX_DEPLOYMENT_TARGET=10.13" test -project osx/deadbeef.xcodeproj -scheme deadbeef -configuration Release | xcbeautify ; test ${PIPESTATUS[0]} -eq 0
xcodebuild "MACOSX_DEPLOYMENT_TARGET=10.13" -project osx/deadbeef.xcodeproj -target DeaDBeeF -configuration Release -quiet | tee osx/build/Release/build.log | xcbeautify ; test ${PIPESTATUS[0]} -eq 0
cd osx/build/Release
zip -r deadbeef-$VERSION-macos-universal.zip DeaDBeeF.app
cd ../../..
Expand Down

0 comments on commit ca58311

Please sign in to comment.