Create rust.yml

This commit is contained in:
Hannes 2021-05-13 13:55:19 +02:00 committed by GitHub
parent b65f9c8afd
commit 1084c80f14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

34
.github/workflows/rust.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: Rust
on:
push
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build2:
runs-on: [macos-latest]
steps:
- uses: actions/checkout@v2
- name: Cross Build iOS
run: cargo build --target aarch64-apple-ios
- name: Cross Build MacOS ARM
run: cargo build --target aarch64-apple-darwin