✨ Issue template updates #16
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: | |
push: | |
branches: | |
- develop | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build Loop | |
runs-on: macos-14 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- 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: Upload DMG | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Loop.dmg | |
path: Build/Loop.dmg | |
- 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 ZIP | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Loop.zip | |
path: Build/Loop.zip |