Skip to content

Commit

Permalink
Revert "mobile/ci: Fix iOS build failures (#31756)" (#32558)
Browse files Browse the repository at this point in the history
* Revert "mobile/ci: Fix iOS build failures (#31756)"

This reverts commit f37ef3f.

and removes unsed code path

Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
  • Loading branch information
keith authored Feb 23, 2024
1 parent 5c05695 commit 66ed827
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 40 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/envoy-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,8 @@ jobs:
include:
- target: ci/mac_ci_steps.sh
name: macOS
steps-pre: |
- run: ./ci/mac_ci_setup.sh
shell: bash
name: Setup macos
source: |
source ./ci/mac_ci_setup.sh
_BAZEL_BUILD_EXTRA_OPTIONS=(
--remote_download_toplevel
--flaky_test_attempts=2
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/mobile-compile_time_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ jobs:
--config=mobile-remote-ci-macos-swift
//library/swift:ios_framework
source: |
# TODO(fredyw): A workaround since mobile/WORKSPACE requires Android SDK to be available
# and the GitHub Action runner image no longer includes Android SDK 30:
# https://github.com/actions/runner-images/issues/8952
./ci/mac_ci_setup.sh --android
source ./ci/mac_ci_setup.sh
./bazelw shutdown
request:
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/mobile-ios_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ jobs:
request: ${{ needs.load.outputs.request }}
runs-on: macos-12
source: |
# TODO(fredyw): A workaround since mobile/WORKSPACE requires Android SDK to be available
# and the GitHub Action runner image no longer includes Android SDK 30:
# https://github.com/actions/runner-images/issues/8952
./ci/mac_ci_setup.sh --android
source ./ci/mac_ci_setup.sh
./bazelw shutdown
steps-post: ${{ matrix.steps-post }}
target: ${{ matrix.target }}
Expand Down Expand Up @@ -86,10 +83,7 @@ jobs:
request: ${{ needs.load.outputs.request }}
runs-on: macos-12
source: |
# TODO(fredyw): A workaround since mobile/WORKSPACE requires Android SDK to be available
# and the GitHub Action runner image no longer includes Android SDK 30:
# https://github.com/actions/runner-images/issues/8952
./ci/mac_ci_setup.sh --android
source ./ci/mac_ci_setup.sh
./bazelw shutdown
steps-post: |
- uses: envoyproxy/toolshed/gh-actions/envoy/ios/post@680d414be3f56cbb161dfdebebece85d81c3f686 # actions-v0.2.24
Expand Down Expand Up @@ -131,10 +125,7 @@ jobs:
request: ${{ needs.load.outputs.request }}
runs-on: macos-12
source: |
# TODO(fredyw): A workaround since mobile/WORKSPACE requires Android SDK to be available
# and the GitHub Action runner image no longer includes Android SDK 30:
# https://github.com/actions/runner-images/issues/8952
./ci/mac_ci_setup.sh --android
source ./ci/mac_ci_setup.sh
steps-post: |
- uses: envoyproxy/toolshed/gh-actions/envoy/ios/post@680d414be3f56cbb161dfdebebece85d81c3f686 # actions-v0.2.24
with:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/mobile-ios_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ jobs:
request: ${{ needs.load.outputs.request }}
runs-on: macos-12
source: |
# TODO(fredyw): A workaround since mobile/WORKSPACE requires Android SDK to be available
# and the GitHub Action runner image no longer includes Android SDK 30:
# https://github.com/actions/runner-images/issues/8952
./ci/mac_ci_setup.sh --android
source ./ci/mac_ci_setup.sh
steps-post: ${{ matrix.steps-post }}
target: ${{ matrix.target }}
timeout-minutes: ${{ matrix.timeout-minutes }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/mobile-release_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ jobs:
request: ${{ needs.load.outputs.request }}
runs-on: macos-12
source: |
# TODO(fredyw): A workaround since mobile/WORKSPACE always requires Android SDK to be available
# and the GitHub Action runner image no longer includes Android SDK 30:
# https://github.com/actions/runner-images/issues/8952
./ci/mac_ci_setup.sh --android
source ./ci/mac_ci_setup.sh
# Ignore errors: Bad CRC when unzipping large files: https://bbs.archlinux.org/viewtopic.php?id=153011
steps-post: |
- run: |
Expand Down
15 changes: 3 additions & 12 deletions mobile/ci/mac_ci_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@ sudo xcode-select --switch /Applications/Xcode_14.1.app

retry ./bazelw version

if [[ "${1:-}" == "--android" ]]; then
# Download and set up ndk 21 after GitHub update
# https://github.com/actions/virtual-environments/issues/5595
ANDROID_HOME=$ANDROID_SDK_ROOT
SDKMANAGER="${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager"
"${SDKMANAGER}" --install "platform-tools" "platforms;android-30"
"${SDKMANAGER}" --uninstall "ndk-bundle"
"${SDKMANAGER}" --install "ndk;21.4.7075529"
"${SDKMANAGER}" --install "build-tools;30.0.2"
ANDROID_NDK_HOME="${ANDROID_HOME}/ndk/21.4.7075529"
export ANDROID_NDK_HOME
fi
# Unset default variables so we don't have to install Android SDK/NDK.
unset ANDROID_HOME
unset ANDROID_NDK_HOME

0 comments on commit 66ed827

Please sign in to comment.