Create rust.yml
This commit is contained in:
parent
b65f9c8afd
commit
1084c80f14
1 changed files with 34 additions and 0 deletions
34
.github/workflows/rust.yml
vendored
Normal file
34
.github/workflows/rust.yml
vendored
Normal 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
|
||||||
|
|
Loading…
Reference in a new issue