Skip to content

Commit ae6e0b1

Browse files
committed
less code
Signed-off-by: rooot <hey@rooot.gay>
1 parent 06aa5d4 commit ae6e0b1

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

action.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ runs:
211211
export GEODE_SDK="${{ github.workspace }}/geode-sdk-clone"
212212
echo "GEODE_SDK=$GEODE_SDK" >> $GITHUB_ENV
213213
214-
if [ "${{ inputs.sdk }}" == "nightly" ]; then
214+
if [ "${{ inputs.sdk }}" == "nightly" ] || [ "${{ steps.platform.outputs.target_id }}" == "ios" ]; then
215+
[ "${{ steps.platform.outputs.target_id }}" == "ios" ] && echo "WARNING - building for NIGHTLY as workaround!!"
215216
geode sdk update nightly
216217
geode sdk install-binaries --platform ${{ steps.platform.outputs.target_id }}
217218
elif [ "${{ inputs.sdk }}" == "latest" ]; then
@@ -221,17 +222,8 @@ runs:
221222
export MOD_JSON_PATH=$(find . -name "mod.json" -not -path "./geode-sdk-clone/*" -print | sort -r | head -n 1)
222223
export TARGET_GEODE_VERSION=$(jq -r '.geode' $MOD_JSON_PATH)
223224
echo "Updating to version $TARGET_GEODE_VERSION from $MOD_JSON_PATH"
224-
225-
# remove this if clause after geode ios releases upstream
226-
if [ "${{ steps.platform.outputs.target_id }}" == "ios" ]; then
227-
echo "!! WARNING !! - building against NIGHTLY as WORKAROUND"
228-
geode sdk update nightly
229-
geode sdk install-binaries --platform ios
230-
else
231-
geode sdk update "$TARGET_GEODE_VERSION"
232-
geode sdk install-binaries --platform ${{ steps.platform.outputs.target_id }} --version "$TARGET_GEODE_VERSION"
233-
fi
234-
225+
geode sdk update "$TARGET_GEODE_VERSION"
226+
geode sdk install-binaries --platform ${{ steps.platform.outputs.target_id }} --version "$TARGET_GEODE_VERSION"
235227
else
236228
geode sdk update ${{ inputs.sdk }}
237229
geode sdk install-binaries --platform ${{ steps.platform.outputs.target_id }}

0 commit comments

Comments
 (0)