-
Notifications
You must be signed in to change notification settings - Fork 12
31 lines (31 loc) · 771 Bytes
/
Copy pathrust.yml
File metadata and controls
31 lines (31 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Rust
on:
push: { branches: "main" }
pull_request: { branches: "*" }
jobs:
cross_build:
name: Cross compile
runs-on: ubuntu-latest
strategy:
matrix:
target:
- i586-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- armv7-unknown-linux-gnueabihf
- aarch64-linux-android
steps:
- uses: actions/checkout@v1
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
- name: Build
run: cargo build --target=${{ matrix.target }} --verbose
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build and test
run: cargo test --verbose