Skip to content

Commit

Permalink
👷 Add CI step to dynamically generate XCConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteHyun committed Jan 25, 2024
1 parent 12a1d73 commit 53a6011
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@ jobs:
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "15.2"
- name: Create Shared.xcconfig
run: |
echo "${{ secrets.XCCONFIG }}" | base64 --decode > ./XCConfig/Shared.xcconfig
- name: Set Default Scheme
run: |
default="App-GitHub-CI"
scheme_list=$(xcodebuild -list -json | tr -d "\n")
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
echo $default | cat >default
echo Using default scheme: $default
- name: Build
Expand Down

0 comments on commit 53a6011

Please sign in to comment.