working android prototype #19
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
name: Build & Publish | |
on: | |
push: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-android: | |
name: Build Android | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
filter: tree:0 | |
fetch-depth: 0 | |
- name: Setup Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Setup Android NDK | |
uses: nttld/setup-ndk@v1 | |
with: | |
ndk-version: r26d | |
- name: Post-Setup Android NDK | |
run: echo "/opt/hostedtoolcache/ndk/r26d/x64/toolchains/llvm/prebuilt/linux-x86_64/bin" >> $GITHUB_PATH | |
- name: Setup Ktlint | |
run: curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.2.1/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/ | |
- name: Pre-Build Android Install Dependencies | |
run: sudo apt install libglib2.0-dev protobuf-compiler | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: Setup Turbo | |
uses: actions-pro/setup-turbo@v1 | |
with: | |
package-manager: pnpm | |
version: ^1.13.3 | |
- name: Build Android | |
uses: actions-pro/turbo@v1 | |
env: | |
CARGO_BUILD_JOBS: -1 | |
with: | |
turbo: run --filter @javascript-runtime/deno build | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.event.repository.name }}-android | |
path: packages/javascript-runtime-deno/lib/android |