mirror of https://github.com/passcod/cargo-watch
101 lines
2.8 KiB
YAML
101 lines
2.8 KiB
YAML
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- try/**
|
|
tags-ignore:
|
|
- v*.*.*
|
|
|
|
name: Checks & Tests
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- ubuntu
|
|
- windows
|
|
- macos
|
|
version:
|
|
- stable
|
|
- 1.60.0
|
|
|
|
name: Test on ${{ matrix.platform }} with ${{ matrix.version }}
|
|
runs-on: "${{ matrix.platform }}-latest"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: "${{ matrix.version }}"
|
|
override: true
|
|
- name: Add clippy
|
|
run: rustup component add clippy
|
|
- name: Test
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
|
|
clippy:
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- target: x86_64-unknown-freebsd
|
|
platform: ubuntu-latest
|
|
- target: x86_64-unknown-netbsd
|
|
platform: ubuntu-latest
|
|
- target: x86_64-unknown-redox
|
|
platform: ubuntu-latest
|
|
- target: x86_64-unknown-linux-gnu
|
|
platform: ubuntu-latest
|
|
- target: x86_64-unknown-linux-musl
|
|
platform: ubuntu-latest
|
|
- target: x86_64-apple-darwin
|
|
platform: macos-latest
|
|
- target: x86_64-pc-windows-msvc
|
|
platform: windows-latest
|
|
- target: armv7-unknown-linux-gnueabihf
|
|
platform: ubuntu-latest
|
|
- target: armv7-unknown-linux-musleabihf
|
|
platform: ubuntu-latest
|
|
- target: aarch64-unknown-linux-gnu
|
|
platform: ubuntu-latest
|
|
- target: aarch64-unknown-linux-musl
|
|
platform: ubuntu-latest
|
|
- target: aarch64-apple-darwin
|
|
platform: macos-latest
|
|
- target: aarch64-pc-windows-msvc
|
|
platform: windows-latest
|
|
- target: riscv64gc-unknown-linux-gnu
|
|
platform: ubuntu-latest
|
|
|
|
name: Check on ${{ matrix.target }}
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Add musl tools
|
|
run: sudo apt install -y musl musl-dev musl-tools
|
|
if: endsWith(matrix.target, '-musl')
|
|
- name: Add aarch-gnu tools
|
|
run: sudo apt install -y gcc-aarch64-linux-gnu
|
|
if: startsWith(matrix.target, 'aarch64-unknown-linux')
|
|
- name: Add arm7hf-gnu tools
|
|
run: sudo apt install -y gcc-arm-linux-gnueabihf
|
|
if: startsWith(matrix.target, 'armv7-unknown-linux-gnueabihf')
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
target: ${{ matrix.target }}
|
|
override: true
|
|
- name: Check
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: clippy
|
|
args: --target ${{ matrix.target }}
|
|
|