Skip to content

Commit

Permalink
HACK: ci: Create Android symlink without spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Nov 7, 2020
1 parent 55cb32d commit b89ecba
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,21 @@ jobs:
run:
cargo install --path cargo-apk

- if: runner.os == 'Windows'
name: Create symlink to Android SDK/NDK without spaces
run: |
$oldAndroidPath = $env:ANDROID_HOME
$sdk_root = "C:\Android"
New-Item -Path $sdk_root -ItemType SymbolicLink -Value $oldAndroidPath
echo "ANDROID_SDK_ROOT=$sdk_root" >> $env:GITHUB_ENV
echo "ANDROID_NDK_ROOT=$sdk_root\ndk-bundle" >> $env:GITHUB_ENV
# Unset legacy paths:
echo "ANDROID_HOME=" >> $env:GITHUB_ENV
echo "ANDROID_NDK_HOME=" >> $env:GITHUB_ENV
echo "ANDROID_NDK_PATH=" >> $env:GITHUB_ENV
- name: Check compiling on target ${{ matrix.rust-target }}
run: |
cargo check -p ndk --target ${{ matrix.rust-target }}
Expand Down

0 comments on commit b89ecba

Please sign in to comment.