mirror of
https://github.com/chmln/sd
synced 2024-11-23 11:43:04 +00:00
40 lines
797 B
YAML
40 lines
797 B
YAML
name: Test
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publish for ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
target: x86_64-unknown-linux-gnu
|
|
|
|
- os: ubuntu-latest
|
|
target: x86_64-unknown-linux-musl
|
|
|
|
- os: windows-latest
|
|
target: x86_64-pc-windows-msvc
|
|
|
|
- os: macos-latest
|
|
target: x86_64-apple-darwin
|
|
|
|
steps:
|
|
- 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 }}
|
|
|
|
|
|
- name: Test
|
|
run: cargo test
|