074a3b3d42
type: testing
41 lines
844 B
YAML
41 lines
844 B
YAML
name: Rust
|
|
|
|
on: [push]
|
|
|
|
# - name: Prepare - macOS
|
|
# if: matrix.os == 'macos-latest'
|
|
# run: |
|
|
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
# - name: Update
|
|
# run: rustup update stable
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- macos-latest
|
|
- ubuntu-latest
|
|
- windows-latest
|
|
runs-on: ${{matrix.os}}
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
components: clippy
|
|
override: true
|
|
- name: Version
|
|
run: |
|
|
rustup --version
|
|
cargo --version
|
|
cargo clippy --version
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
- name: Test
|
|
run: cargo test --verbose
|
|
- name: Lint
|
|
run: cargo clippy
|