This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
Made the readme better and little tweaks #233
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
jobs: | |
check: | |
runs-on: ${{ matrix.os }} | |
name: Check | |
strategy: | |
matrix: | |
include: | |
# Ubuntu | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
rust: nightly | |
- os: ubuntu-latest | |
target: i686-unknown-linux-gnu | |
rust: nightly | |
- os: ubuntu-latest | |
target: aarch64-unknown-linux-gnu | |
rust: nightly | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
target: ${{ matrix.target }} | |
override: true | |
components: rustfmt, clippy | |
- name: Add nightly-x86_64 | |
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu | |
- name: Build | |
run: cargo build --verbose | |
clippy: | |
runs-on: ${{ matrix.os }} | |
name: Clippy | |
strategy: | |
matrix: | |
include: | |
# Ubuntu | |
- os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
rust: nightly | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
target: ${{ matrix.target }} | |
override: true | |
components: rustfmt, clippy | |
- name: Add nightly-x86_64 | |
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu | |
- name: Clippy | |
run: cargo clippy --verbose |