refactor: commit Xcode project and build it directly in CI
Some checks failed
swift-macos-arm64 / swift-macos-arm64 (push) Failing after 3s
Some checks failed
swift-macos-arm64 / swift-macos-arm64 (push) Failing after 3s
This commit is contained in:
parent
c22efbc99d
commit
1ed4f8ef61
@ -20,20 +20,6 @@ jobs:
|
||||
xcodebuild -version
|
||||
swift --version
|
||||
|
||||
- name: Install XcodeGen
|
||||
run: |
|
||||
set -eu
|
||||
if ! command -v xcodegen >/dev/null 2>&1; then
|
||||
brew install xcodegen
|
||||
fi
|
||||
xcodegen --version
|
||||
|
||||
- name: Generate Xcode project
|
||||
run: |
|
||||
set -eu
|
||||
chmod +x ./scripts/generate-xcodeproj.sh
|
||||
./scripts/generate-xcodeproj.sh
|
||||
|
||||
- name: Build app
|
||||
run: |
|
||||
set -eu
|
||||
|
||||
@ -8,10 +8,9 @@ A modern macOS SwiftUI/Xcode app for exercising main application window capabili
|
||||
- sheets and confirmation dialogs
|
||||
- secondary utility window
|
||||
- simple menu-bar / tray integration
|
||||
- Xcode project generation via XcodeGen for modern Xcode workflows and previews
|
||||
- committed Xcode project for direct builds in Xcode and CI
|
||||
|
||||
## Layout
|
||||
- `SwiftTrayDemo/` — Swift source for the macOS app
|
||||
- `project.yml` — XcodeGen spec
|
||||
- `scripts/generate-xcodeproj.sh` — generates `SwiftTrayDemo.xcodeproj`
|
||||
- `SwiftTrayDemo.xcodeproj/` — committed Xcode project
|
||||
- `.gitea/workflows/swift-macos-arm64.yml` — native Apple Silicon CI build
|
||||
|
||||
38
project.yml
38
project.yml
@ -1,38 +0,0 @@
|
||||
name: SwiftTrayDemo
|
||||
options:
|
||||
minimumXcodeGenVersion: 2.38.0
|
||||
deploymentTarget:
|
||||
macOS: '14.0'
|
||||
settings:
|
||||
base:
|
||||
PRODUCT_BUNDLE_IDENTIFIER: io.swissline.swifttraydemo
|
||||
SWIFT_VERSION: 5.10
|
||||
MACOSX_DEPLOYMENT_TARGET: 14.0
|
||||
GENERATE_INFOPLIST_FILE: YES
|
||||
INFOPLIST_KEY_NSHighResolutionCapable: YES
|
||||
INFOPLIST_KEY_LSApplicationCategoryType: public.app-category.developer-tools
|
||||
CODE_SIGNING_ALLOWED: NO
|
||||
CODE_SIGNING_REQUIRED: NO
|
||||
CODE_SIGN_IDENTITY: ''
|
||||
ENABLE_DEBUG_DYLIB: YES
|
||||
|
||||
targets:
|
||||
SwiftTrayDemo:
|
||||
type: application
|
||||
platform: macOS
|
||||
sources:
|
||||
- SwiftTrayDemo
|
||||
settings:
|
||||
base:
|
||||
PRODUCT_NAME: SwiftTrayDemo
|
||||
PRODUCT_MODULE_NAME: SwiftTrayDemo
|
||||
INFOPLIST_KEY_CFBundleDisplayName: SwiftTrayDemo
|
||||
INFOPLIST_KEY_CFBundleName: SwiftTrayDemo
|
||||
INFOPLIST_KEY_CFBundleExecutable: SwiftTrayDemo
|
||||
INFOPLIST_KEY_CFBundleIdentifier: io.swissline.swifttraydemo
|
||||
INFOPLIST_KEY_CFBundleShortVersionString: '1.0'
|
||||
INFOPLIST_KEY_CFBundleVersion: '1'
|
||||
INFOPLIST_KEY_LSMinimumSystemVersion: '14.0'
|
||||
scheme:
|
||||
testTargets: []
|
||||
gatherCoverageData: false
|
||||
@ -1,8 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
if ! command -v xcodegen >/dev/null 2>&1; then
|
||||
echo "xcodegen not found. Install with: brew install xcodegen" >&2
|
||||
exit 1
|
||||
fi
|
||||
cd "$(dirname "$0")/.."
|
||||
xcodegen generate
|
||||
Loading…
x
Reference in New Issue
Block a user