Skip to content

Commit

Permalink
chore: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Nov 8, 2023
1 parent b159a92 commit 37b4b80
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Android

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
instrumented_tests:
name: Run Instrumented Tests
runs-on: macos-latest

steps:
- name: Save logcat output
uses: actions/upload-artifact@master
if: failure()
with:
name: logcat
path: artifacts/logcat.log

- name: checkout
uses: actions/checkout@v2

- name: rust toolchain setup
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: install cargo ndk
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-ndk

- name: setup build targets
run: rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android aarch64-apple-ios --target=x86_64-apple-ios

- name: build
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
script: ./gradlew cargoBuild

0 comments on commit 37b4b80

Please sign in to comment.