Skip to content

Commit

Permalink
try to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jan 23, 2024
1 parent acce33f commit 5dbaf33
Showing 1 changed file with 18 additions and 29 deletions.
47 changes: 18 additions & 29 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,12 @@ jobs:
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Setup Android SDK packages
uses: maxim-lobanov/setup-android-tools@v1
with:
packages: |
build-tools;${{ env.SDK_BUILD_TOOLS_VERSION }}
cmdline-tools;${{ env.SDK_CMDLINE_TOOLS_VERSION }}
ndk;${{ env.NDK_VERSION }}
platforms;android-21
cache: true
- name: Set Up Android tools
run: |
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "build-tools;${{ env.SDK_BUILD_TOOLS_VERSION }}"
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "cmdline-tools;${{ env.SDK_CMDLINE_TOOLS_VERSION }}"
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "ndk;${{ env.NDK_VERSION }}"
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "platforms;android-21"
- name: Config Android NDK
env:
TRIPLE: x86_64-linux-android
Expand Down Expand Up @@ -118,17 +115,12 @@ jobs:
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- run: |
echo "NDK_VERSION=25.2.9519653" >> $GITHUB_ENV
- name: Setup Android SDK packages
uses: maxim-lobanov/setup-android-tools@v1
with:
packages: |
build-tools;${{ env.SDK_BUILD_TOOLS_VERSION }}
cmdline-tools;${{ env.SDK_CMDLINE_TOOLS_VERSION }}
ndk;${{ env.NDK_VERSION }}
platforms;android-21
cache: true
- name: Set Up Android tools
run: |
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "build-tools;${{ env.SDK_BUILD_TOOLS_VERSION }}"
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "cmdline-tools;${{ env.SDK_CMDLINE_TOOLS_VERSION }}"
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "ndk;${{ env.NDK_VERSION }}"
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "platforms;android-21"
- name: Config Android NDK
run: |
echo "$ANDROID_SDK_ROOT/ndk/$NDK_VERSION/toolchains/llvm/prebuilt/linux-x86_64/bin" >> $GITHUB_PATH
Expand Down Expand Up @@ -234,15 +226,12 @@ jobs:
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Setup Android SDK packages
uses: maxim-lobanov/setup-android-tools@v1
with:
packages: |
build-tools;${{ env.SDK_BUILD_TOOLS_VERSION }}
cmdline-tools;${{ env.SDK_CMDLINE_TOOLS_VERSION }}
ndk-bundle
platforms;android-21
cache: true
- name: Set Up Android tools
run: |
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "build-tools;${{ env.SDK_BUILD_TOOLS_VERSION }}"
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "cmdline-tools;${{ env.SDK_CMDLINE_TOOLS_VERSION }}"
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "ndk;${{ env.NDK_VERSION }}"
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "platforms;android-21"
- name: Setup Rust
uses: hecrj/setup-rust-action@v1
with:
Expand Down

0 comments on commit 5dbaf33

Please sign in to comment.