File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 7171 sudo rm -rf "/usr/local/share/boost"
7272 sudo rm -rf "$AGENT_TOOLSDIRECTORY"
7373
74+ - name : Setup Android Environment
75+ run : |
76+ echo "$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/${{ env.ANDROID_BUILD_TOOLS_VERSION }}" >> $GITHUB_PATH
77+ # needed for Linux or else the emulator will be created in
78+ # ~/.android/avd but it will be sought in ~/.config/.android/avd
79+ if [[ "${RUNNER_OS}" == "Linux" ]]; then
80+ echo "ANDROID_AVD_HOME=${XDG_CONFIG_HOME:-$HOME}/.android/avd" >> $GITHUB_ENV
81+ fi
82+
83+
7484 - name : Android SDKs - list installed SDKs
7585 run : sdkmanager --list_installed
7686
@@ -170,15 +180,6 @@ jobs:
170180 # https://github.com/swiftlang/swift-driver/pull/1879
171181 echo "ANDROID_NDK_ROOT=" >> $GITHUB_ENV
172182
173- - name : Setup Android Environment
174- run : |
175- echo "$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/${{ env.ANDROID_BUILD_TOOLS_VERSION }}" >> $GITHUB_PATH
176- # needed for Linux or else the emulator will be created in
177- # ~/.android/avd but it will be sought in ~/.config/.android/avd
178- if [[ "${RUNNER_OS}" == "Linux" ]]; then
179- echo "ANDROID_AVD_HOME=${XDG_CONFIG_HOME:-$HOME}/.android/avd" >> $GITHUB_ENV
180- fi
181-
182183 - name : Setup Swift SDK for Android
183184 run : |
184185 cd ~/Library/org.swift.swiftpm || cd ${XDG_CONFIG_HOME}/swiftpm || cd ~/.local/swiftpm || cd ~/.swiftpm
You can’t perform that action at this time.
0 commit comments