Skip to content

Commit ac6befe

Browse files
committed
Feat: 빌드 체크 자동화 Github Actions 추가
1 parent 4203ba2 commit ac6befe

2 files changed

Lines changed: 50 additions & 1 deletion

File tree

.github/workflows/build_test.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: iOS CI Build (Tuist + Secrets)
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
build:
10+
runs-on: macos-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set Xcode version
17+
run: sudo xcode-select -s /Applications/Xcode_16.2.app
18+
19+
- name: Install Mise and Tuist
20+
run: |
21+
curl -fsSL https://mise.jdx.dev/install.sh | sh
22+
export PATH="$HOME/.local/bin:$PATH"
23+
mise install tuist
24+
mise use -g tuist
25+
26+
- name: Generate xcconfig
27+
run: |
28+
mkdir -p SupportingFiles
29+
echo "BASE_URL = ${BASE_URL}" > SupportingFiles/Secrets.xcconfig
30+
env:
31+
BASE_URL: ${{ secrets.BASE_URL }}
32+
33+
- name: Generate Xcode project with Tuist
34+
run: |
35+
export PATH="$HOME/.local/bin:$PATH"
36+
mise exec -- tuist install
37+
mise exec -- tuist generate --no-open
38+
39+
- name: Build with xcodebuild
40+
run: |
41+
set -o pipefail
42+
xcodebuild \
43+
-workspace Bitnagil.xcworkspace \
44+
-scheme App \
45+
-sdk iphonesimulator \
46+
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2' \
47+
clean build | xcpretty
48+

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ iOSInjectionProject/
104104
*.xcworkspace
105105
**/Derived/
106106
.build/
107-
.cache/
107+
.cache/
108+
*.swp

0 commit comments

Comments
 (0)