-
-
Notifications
You must be signed in to change notification settings - Fork 35k
build: implement build android workflow #51666
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
Open
MeowShe
wants to merge
6
commits into
nodejs:main
Choose a base branch
from
MeowShe:build-androi-ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d718af7
build: implement `build android` workflow
MeowShe a9e2bcb
fixup! build: implement `build android` workflow
MeowShe de0961c
fixup! build: implement `build android` workflow
MeowShe dea50f6
fixup! build: implement `build android` workflow
MeowShe 2ef5418
fixup! build: implement `build android` workflow
MeowShe 083574e
fixup! build: implement `build android` workflow
MeowShe 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
Next
Next commit
build: implement
build android workflow
- Loading branch information
commit d718af725324efcca017a14d22e28812b3ed8083
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| name: Build Android | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| ndkVersion: | ||
| description: Android NDK Version (e.g., r26b) | ||
| required: true | ||
| default: r26b | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, ready_for_review] | ||
| paths-ignore: | ||
| - .mailmap | ||
| - '**.md' | ||
| - AUTHORS | ||
| - doc/** | ||
| - .github/** | ||
| - '!.github/workflows/android_ci.yml' | ||
| push: | ||
| branches: | ||
| - main | ||
| - v[0-9]+.x-staging | ||
| - v[0-9]+.x | ||
| paths-ignore: | ||
| - .mailmap | ||
| - '**.md' | ||
| - AUTHORS | ||
| - doc/** | ||
| - .github/** | ||
| - '!.github/workflows/android_ci.yml' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| PYTHON_VERSION: '3.11' | ||
| ARCH: x86_64 | ||
| API_LEVEL: '34' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| android-build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
MeowShe marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| with: | ||
| persist-credentials: false | ||
| - name: Set up Python ${{ env.PYTHON_VERSION }} | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ env.PYTHON_VERSION }} | ||
| - name: Download Android NDK | ||
| run: | | ||
| wget https://dl.google.com/android/repository/android-ndk-${{ github.event.inputs.ndkVersion }}-linux.zip | ||
| unzip android-ndk-${{ github.event.inputs.ndkVersion }}-linux.zip -d ${{ github.workspace }} | ||
| echo "NDK_PATH=${{ github.workspace }}/android-ndk-${{ github.event.inputs.ndkVersion }}" >> $GITHUB_ENV | ||
| - name: Configure and Build | ||
| run: | | ||
| ./android-configure $NDK_PATH $API_LEVEL $ARCH && make -j4 | ||
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.