From 581af8fa78c149b620636af7fe0676d6168e6c62 Mon Sep 17 00:00:00 2001 From: Troy Neubauer Date: Thu, 12 Sep 2024 09:03:01 -0700 Subject: [PATCH] ci attempt #1 --- .github/workflows/rust.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8406b5a..9070e93 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,7 +2,7 @@ name: Rust on: push: - branches: [ "main" ] + branches: [ "*" ] pull_request: branches: [ "main" ] @@ -28,7 +28,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: ${{ matrix.rust }} override: true @@ -36,3 +36,14 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + build_android: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install toolchain + uses: dtolnay/rust-toolchain@stable + with: + targets: 'aarch64-linux-android, armv7-linux-androideabi' + - name: build + run: cargo build --target aarch64-linux-android --all-features + run: cargo build --target armv7-linux-androideabi --all-features