Skip to content

Commit 250fa9f

Browse files
committed
refactor: GitHub Actions scheme 입력을 env로 전달하도록 수정
1 parent 44ab651 commit 250fa9f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/actions/ios-simulator-build/action.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,31 +99,33 @@ runs:
9999
100100
- name: Build
101101
shell: bash
102+
env:
103+
SCHEME: ${{ inputs.scheme }}
104+
IOS_VER: ${{ steps.pick_ios.outputs.ios_version }}
105+
DEVICE_NAME: ${{ steps.pick_ios.outputs.device_name }}
102106
run: |
103107
set -euo pipefail
104108
set -x
105-
IOS_VER="${{ steps.pick_ios.outputs.ios_version }}"
106-
DEVICE_NAME="${{ steps.pick_ios.outputs.device_name }}"
107109
SPM_DIR="$GITHUB_WORKSPACE/.spm"
108110
mkdir -p "$SPM_DIR"
109111
110112
xcodebuild -version
111113
112-
echo "Using scheme: ${{ inputs.scheme }}"
114+
echo "Using scheme: $SCHEME"
113115
114116
echo "Using simulator: $DEVICE_NAME (iOS ${IOS_VER})"
115117
116118
set -o pipefail
117119
set +e
118120
echo "== Resolving Swift Package dependencies =="
119121
xcodebuild \
120-
-scheme "${{ inputs.scheme }}" \
122+
-scheme "$SCHEME" \
121123
-configuration Debug \
122124
-clonedSourcePackagesDirPath "$SPM_DIR" \
123125
-resolvePackageDependencies
124126
echo "== Starting xcodebuild build =="
125127
xcodebuild \
126-
-scheme "${{ inputs.scheme }}" \
128+
-scheme "$SCHEME" \
127129
-configuration Debug \
128130
-destination "platform=iOS Simulator,OS=${IOS_VER},name=${DEVICE_NAME}" \
129131
-clonedSourcePackagesDirPath "$SPM_DIR" \

0 commit comments

Comments
 (0)