-
Notifications
You must be signed in to change notification settings - Fork 395
Fix pipeline issues #530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix pipeline issues #530
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
38ca803
update
snnn 20d9e25
update
snnn b31adf8
update
snnn 0c65a06
update
snnn 90112b6
update
snnn 8388e81
update
snnn 6361e87
update
snnn cff0b14
update
snnn 4b7b4cd
update
snnn 73acdf5
update
snnn db1a92b
update
snnn 5a7550c
update
snnn e9b95ca
stash
snnn ee7c22f
stash
snnn 21a3883
update
snnn 7653ddd
Add permission settings
snnn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| # .github/actions/setup-android-ndk/action.yml | ||
| name: 'Setup Android NDK' | ||
| description: 'Installs and configures a specific version of the Android NDK' | ||
| inputs: | ||
| ndk-version: | ||
| description: 'The version of the Android NDK to install (e.g., 27.2.12479018)' | ||
| required: true | ||
| default: '28.0.13004108' | ||
| android-sdk-root: | ||
| description: 'The root directory of the Android SDK' | ||
| required: true | ||
| default: '/usr/local/lib/android/sdk' | ||
|
|
||
| runs: | ||
| using: "composite" # Use a composite action for multiple shell commands | ||
| steps: | ||
| - name: Install coreutils and ninja | ||
| shell: bash | ||
| run: sudo apt-get update -y && sudo apt-get install -y coreutils ninja-build | ||
|
|
||
| - name: Install Android NDK | ||
| shell: bash | ||
| run: | | ||
| set -e | ||
| python -m pip install psutil | ||
| "${{ inputs.android-sdk-root }}/cmdline-tools/latest/bin/sdkmanager" --install "ndk;${{ inputs.ndk-version }}" | ||
|
|
||
| NDK_PATH="${{ inputs.android-sdk-root }}/ndk/${{ inputs.ndk-version }}" | ||
| if [[ ! -d "${NDK_PATH}" ]]; then | ||
| echo "NDK directory is not in expected location: ${NDK_PATH}" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Use standard environment variable setting in bash and add to GITHUB_ENV | ||
| echo "ANDROID_NDK_HOME=${NDK_PATH}" >> $GITHUB_ENV | ||
| echo "ANDROID_NDK_ROOT=${NDK_PATH}" >> $GITHUB_ENV | ||
| echo "ANDROID_NDK_HOME: ${NDK_PATH}" | ||
| echo "ANDROID_NDK_ROOT: ${NDK_PATH}" | ||
|
|
||
| - name: Check if emulator are installed and add to PATH | ||
| shell: bash | ||
| run: | | ||
| if [[ ":$PATH:" == *":${ANDROID_SDK_ROOT}/emulator:"* ]]; then | ||
| echo "${ANDROID_SDK_ROOT}/emulator is in PATH" | ||
| else | ||
| ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "emulator" | ||
| echo "${ANDROID_SDK_ROOT}/emulator" >> $GITHUB_PATH | ||
| fi | ||
|
|
||
| - name: Check if platform tools are installed and add to PATH | ||
| shell: bash | ||
| run: | | ||
| if [[ ":$PATH:" == *":${ANDROID_SDK_ROOT}/platform-tools:"* ]]; then | ||
| echo "${ANDROID_SDK_ROOT}/platform-tools is in PATH" | ||
| else | ||
| ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "platform-tools" | ||
| echo "${ANDROID_SDK_ROOT}/platform-tools" >> $GITHUB_PATH | ||
| fi | ||
| ls -R "${ANDROID_SDK_ROOT}/platform-tools" | ||
|
|
||
| - name: Create Android Emulator | ||
| shell: bash | ||
| env: | ||
| ANDROID_AVD_HOME: ${{ runner.temp }}/android-avd | ||
| run: | | ||
| python3 tools/python/run_android_emulator.py \ | ||
| --android-sdk-root "${ANDROID_SDK_ROOT}" \ | ||
| --create-avd --system-image "system-images;android-31;default;x86_64" | ||
|
|
||
| - name: List Android AVDs | ||
| shell: bash | ||
| env: | ||
| ANDROID_AVD_HOME: ${{ runner.temp }}/android-avd | ||
| run: | | ||
| "${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/avdmanager" list avd | ||
|
|
||
| - name: Check emulator.pid does not exist | ||
| shell: bash | ||
| run: | | ||
| if test -f ./emulator.pid; then | ||
| echo "Emulator PID file was not expected to exist but does and has pid: `cat ./emulator.pid`" | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Start Android Emulator | ||
| shell: bash | ||
| env: | ||
| ANDROID_AVD_HOME: ${{ runner.temp }}/android-avd | ||
| run: | | ||
| set -e -x | ||
| python3 tools/python/run_android_emulator.py \ | ||
| --android-sdk-root "${ANDROID_SDK_ROOT}" \ | ||
| --start --emulator-extra-args="-partition-size 2047" \ | ||
| --emulator-pid-file ./emulator.pid | ||
| echo "Emulator PID: `cat ./emulator.pid`" | ||
|
|
||
| - name: View Android ENVs | ||
| shell: bash | ||
| run: env | grep ANDROID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: Lint | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, 'rel-*'] | ||
| pull_request: | ||
| branches: [main, 'rel-*'] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| attestations: write | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: '3.10' | ||
| - name: Install dependencies | ||
| run: pip install -r requirements.txt | ||
| - name: Run lintrunner | ||
| run: lintrunner | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.