Pin android build to a suposedly working image #3
Workflow file for this run
This file contains 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
# We could use `@actions-rs/cargo` Action ability to automatically install `cross` tool | |
# in order to compile our application for some unusual targets. | |
# Separated as another pipeline to avoid errors cancelling other targets until the cross issue is solved | |
# Ref: https://github.com/bltavares/multicast-socket/issues/18 | |
on: [push, pull_request] | |
name: Cross-compile android | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: | |
- aarch64-linux-android | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.67 | |
target: ${{ matrix.target }} | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: build | |
args: --target=${{ matrix.target }} --examples |