Build CI 테스트(#181) #46
Workflow file for this run
This file contains hidden or 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 Test | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| jobs: | |
| Build: | |
| runs-on: macos-15 | |
| steps: | |
| # 저장소의 코드를 체크아웃 | |
| - name: Checkout project | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Write Config.xcconfig | |
| run: | | |
| echo "GPT_API_KEY =. $GPT_API_KEY" >> $CONFIG_FILE_PATH | |
| echo "KAKAO_NATIVE_APP_KEY = $KAKAO_NATIVE_APP_KEY" >> $CONFIG_FILE_PATH | |
| echo "NOTIFICATION_KEY = $NOTIFICATION_KEY" >> $CONFIG_FILE_PATH | |
| env: | |
| GPT_API_KEY: ${{ secrets.GPT_API_KEY }} | |
| KAKAO_NATIVE_APP_KEY: ${{ secrets.KAKAO_NATIVE_APP_KEY }} | |
| NOTIFICATION_KEY: ${{ secrets.NOTIFICATION_KEY }} | |
| CONFIG_FILE_PATH: ${{ 'GimiFeedback/GimiFeedback/App/Config.xcconfig' }} | |
| - name: Decrypt GoogleService-Info.plist | |
| run: | | |
| echo "::add-mask::${GOOGLE_SERVICE_INFO_PWD}" | |
| gpg -d -o $DECRYPTED_GOOGLESERVICE_FILE_PATH \ | |
| --pinentry-mode=loopback \ | |
| --passphrase "$GOOGLE_SERVICE_INFO_PWD" \ | |
| .github/secrets/GoogleService-Info.plist.gpg | |
| env: | |
| GOOGLE_SERVICE_INFO_PWD: ${{ secrets.GOOGLE_SERVICE_INFO_PWD }} | |
| DECRYPTED_GOOGLESERVICE_FILE_PATH: ${{ 'GimiFeedback/GimiFeedback/App/GoogleService-Info.plist' }} | |
| - name: Start xcode build 🛠 | |
| run: | | |
| xcodebuild \ | |
| -project GimiFeedback/GimiFeedback.xcodeproj \ | |
| -scheme GimiFeedback \ | |
| -sdk iphonesimulator \ | |
| -destination "generic/platform=iOS Simulator" \ | |
| -skipPackagePluginValidation \ | |
| clean build |