Skip to content
Merged
Show file tree
Hide file tree
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
65 changes: 34 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,37 @@ jobs:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Create xcconfig files
run: |
# Debug.xcconfig ์ƒ์„ฑ
touch Common.xcconfig

echo "โœ… xcconfig files created"

- name: Build project
run: |
# .xcodeproj ํŒŒ์ผ ์ฐพ๊ธฐ

PROJECT=$(find . -maxdepth 2 -name "*.xcodeproj")
SCHEME=$(basename "$PROJECT" .xcodeproj)

echo "Found Project: $PROJECT"
echo "Found Scheme: $SCHEME"

xcodebuild -project "$PROJECT" \
-scheme "$SCHEME" \
-configuration Debug \
-skipMacroValidation \
-destination "platform=iOS Simulator,name=iPhone 16 Pro,OS=26.2" \
clean build
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Setup mise and Tuist
uses: jdx/mise-action@v2

- name: Prepare xcconfig files
run: |
mkdir -p Projects/App/Resources
if [ ! -f Projects/App/Resources/Common.xcconfig ]; then
printf "BASE_URL = https://hellodoriworld.com\n" > Projects/App/Resources/Common.xcconfig
fi
echo "โœ… xcconfig file is ready"

- name: Install Tuist dependencies
run: tuist install

- name: Generate workspace
run: tuist generate --no-open

- name: Build project
run: |
xcodebuild \
-workspace Dori-iOS.xcworkspace \
-scheme DoriApp \
-configuration Debug \
-skipMacroValidation \
-destination "generic/platform=iOS Simulator" \
clean build
Loading
Loading