2020-11-06 18:52:56 -05:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [windows-latest, macos-latest]
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
2023-05-10 09:36:40 -04:00
|
|
|
- uses: actions/checkout@v3
|
2020-11-17 08:21:51 -05:00
|
|
|
- name: Stable
|
2020-11-06 18:52:56 -05:00
|
|
|
run: cargo test
|
2021-02-27 10:06:22 -05:00
|
|
|
- name: Oldstable
|
|
|
|
run: |
|
2022-11-03 12:37:54 -04:00
|
|
|
rustup default 1.60.0
|
2021-02-27 10:06:22 -05:00
|
|
|
cargo test
|
2020-11-17 08:21:51 -05:00
|
|
|
- name: Clippy
|
|
|
|
run: |
|
|
|
|
rustup component add clippy
|
|
|
|
cargo clippy --all-targets
|
2021-08-17 14:04:46 -04:00
|
|
|
check-macos-arm:
|
|
|
|
runs-on: macos-11
|
|
|
|
steps:
|
2023-05-10 09:36:40 -04:00
|
|
|
- uses: actions/checkout@v3
|
2021-08-17 14:04:46 -04:00
|
|
|
- name: Install target
|
|
|
|
run: rustup update && rustup target add aarch64-apple-darwin
|
2022-01-12 21:23:37 -05:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --target=aarch64-apple-darwin
|