| 1 |
name: OSX |
| 2 |
|
| 3 |
on: |
| 4 |
pull_request: |
| 5 |
branches: [main] |
| 6 |
workflow_dispatch: |
| 7 |
|
| 8 |
jobs: |
| 9 |
cross: |
| 10 |
name: Rust ${{matrix.target}} |
| 11 |
runs-on: macos-latest |
| 12 |
strategy: |
| 13 |
fail-fast: false |
| 14 |
matrix: |
| 15 |
target: |
| 16 |
# iOS targets don't work, since rust-embedded doesn't provide images. |
| 17 |
- x86_64-apple-darwin |
| 18 |
|
| 19 |
steps: |
| 20 |
- uses: actions/checkout@v2 |
| 21 |
- uses: actions-rs/toolchain@v1 |
| 22 |
with: |
| 23 |
toolchain: stable |
| 24 |
target: ${{matrix.target}} |
| 25 |
override: true |
| 26 |
- uses: actions-rs/cargo@v1 |
| 27 |
with: |
| 28 |
use-cross: true |
| 29 |
command: check |
| 30 |
args: --target ${{matrix.target}} |
| 31 |
- uses: actions-rs/cargo@v1 |
| 32 |
with: |
| 33 |
use-cross: true |
| 34 |
command: test |
| 35 |
args: --target ${{matrix.target}} |
| 36 |
- uses: actions-rs/cargo@v1 |
| 37 |
with: |
| 38 |
use-cross: true |
| 39 |
command: test |
| 40 |
args: --target ${{matrix.target}} --features=compact |