π Possible fix for workflow_dispatch
?
#102
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
name: Build Loop | ||
on: [ workflow_dispatch ] | ||
jobs: | ||
build_with_signing: | ||
name: Build Loop | ||
runs-on: macos-14 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
- name: Switch Xcode version | ||
run: | | ||
sudo xcode-select -s "/Applications/Xcode_15.2.app" | ||
/usr/bin/xcodebuild -version | ||
- name: Install dependencies | ||
run: | | ||
brew install xcbeautify create-dmg | ||
- name: Build Loop.app | ||
run: | | ||
set -o pipefail && xcodebuild archive \ | ||
-project ./Loop.xcodeproj \ | ||
-destination "generic/platform=macOS" \ | ||
-scheme "Loop" \ | ||
-configuration Debug \ | ||
-archivePath "./Build/Loop.xcarchive" \ | ||
-xcconfig "./Loop/Config.xcconfig" \ | ||
CODE_SIGNING_REQUIRED=NO \ | ||
CODE_SIGNING_ALLOWED=NO \ | ||
CODE_SIGN_IDENTITY= \ | ||
CODE_SIGN_ENTITLEMENTS= \ | ||
GCC_OPTIMIZATION_LEVEL=s \ | ||
SWIFT_OPTIMIZATION_LEVEL=-O \ | ||
GCC_GENERATE_DEBUGGING_SYMBOLS=YES \ | ||
DEBUG_INFORMATION_FORMAT=dwarf-with-dsym | xcbeautify | ||
- name: Make DMG | ||
run: | | ||
create-dmg \ | ||
--volname "Loop" \ | ||
--background "./assets/graphics/dmg-background.png" \ | ||
--window-pos 200 120 \ | ||
--window-size 660 400 \ | ||
--icon-size 160 \ | ||
--icon "Loop.app" 180 170 \ | ||
--hide-extension "Loop.app" \ | ||
--app-drop-link 480 170 \ | ||
--no-internet-enable \ | ||
"./Build/Loop.dmg" \ | ||
"./Build/Loop.xcarchive/Products/Applications/" | ||
- name: Make ZIP | ||
run: | | ||
cp -R ./Build/Loop.xcarchive/Products/Applications/ ./Build/ | ||
ditto -c -k --sequesterRsrc --keepParent ./Build/Loop.app ./Build/Loop.zip | ||
- name: Upload build | ||
uses: actions/[email protected] | ||
with: | ||
name: Loop Build | ||
path: | | ||
Build/Loop.zip | ||
Build/Loop.dmg |