mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
894 B
YAML
46 lines
894 B
YAML
name: build-aya
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- ci
|
|
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build-test:
|
|
strategy:
|
|
matrix:
|
|
arch:
|
|
- x86_64-unknown-linux-gnu
|
|
- aarch64-unknown-linux-gnu
|
|
- armv7-unknown-linux-gnueabi
|
|
- riscv64gc-unknown-linux-gnu
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
|
|
- uses: Swatinem/rust-cache@v1
|
|
- name: Prereqs
|
|
run: cargo install cross --git https://github.com/cross-rs/cross
|
|
|
|
- name: Build
|
|
run: cross build --verbose --target ${{matrix.arch}}
|
|
|
|
- name: Run test
|
|
env:
|
|
RUST_BACKTRACE: full
|
|
run: |
|
|
cross test --verbose --target ${{matrix.arch}}
|