sd/.github/workflows/test.yml

56 lines
1.2 KiB
YAML
Raw Normal View History

2020-07-03 11:38:52 -04:00
name: Test
on: [pull_request]
jobs:
2020-07-03 11:51:57 -04:00
test:
2020-07-03 11:55:22 -04:00
name: ${{ matrix.target }}
2020-07-03 11:38:52 -04:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
2021-02-28 23:41:21 -05:00
use-cross: false
2020-07-03 11:38:52 -04:00
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
2021-02-28 23:41:21 -05:00
use-cross: false
- os: ubuntu-latest
target: arm-unknown-linux-gnueabihf
use-cross: true
2020-07-03 11:38:52 -04:00
- os: windows-latest
target: x86_64-pc-windows-msvc
2021-02-28 23:41:21 -05:00
use-cross: false
2020-07-03 11:38:52 -04:00
- os: macos-latest
target: x86_64-apple-darwin
2021-02-28 23:41:21 -05:00
use-cross: false
2020-07-03 11:38:52 -04:00
2021-03-04 23:36:44 -05:00
- os: macos-latest
target: aarch64-apple-darwin
use-cross: false
2020-07-03 11:38:52 -04:00
steps:
2020-07-03 11:40:54 -04:00
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}
2020-07-03 11:38:52 -04:00
2021-02-28 23:46:49 -05:00
- name: Test
2021-02-28 23:41:21 -05:00
uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.use-cross }}
command: test
args: --target ${{ matrix.target }}