CI/CD Pipeline Integration: iOS + Android stages with Gitea-native syntax #11
@@ -106,6 +106,20 @@ jobs:
|
|||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||||
cache: true
|
cache: true
|
||||||
|
|
|||||||
|
|
||||||
|
- name: Install Android SDK command-line tools
|
||||||
|
run: |
|
||||||
|
export ANDROID_HOME="${HOME}/android-sdk"
|
||||||
|
mkdir -p "${ANDROID_HOME}/cmdline-tools"
|
||||||
|
curl -fsSL "https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip" -o cmdline-tools.zip
|
||||||
|
unzip -q cmdline-tools.zip -d "${ANDROID_HOME}/cmdline-tools"
|
||||||
|
mv "${ANDROID_HOME}/cmdline-tools/cmdline-tools" "${ANDROID_HOME}/cmdline-tools/latest"
|
||||||
|
export PATH="${ANDROID_HOME}/cmdline-tools/latest/bin:${PATH}"
|
||||||
|
yes | sdkmanager --licenses >/dev/null 2>&1 || true
|
||||||
|
sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
|
||||||
|
echo "ANDROID_HOME=${ANDROID_HOME}" >> "${GITEA_ENV_FILE}"
|
||||||
|
echo "${ANDROID_HOME}/cmdline-tools/latest/bin" >> "${GITEA_PATH_FILE}"
|
||||||
|
echo "${ANDROID_HOME}/platform-tools" >> "${GITEA_PATH_FILE}"
|
||||||
|
|
||||||
- name: Pre-cache Android platform artifacts
|
- name: Pre-cache Android platform artifacts
|
||||||
run: flutter precache --android
|
run: flutter precache --android
|
||||||
|
|
||||||
|
kfj001
commented
This is a ubuntu based image. Let's use This is a ubuntu based image. Let's use `apt` to install the `openjdk-17-jdk` package.
|
|||||||
|
|||||||
Reference in new issue
Block a user
versioning....