Merge pull request #2 from phip1611/github-ci

Github CI
no-rustdoc
Philipp Schuster 2021-10-04 11:23:34 +02:00 committed by GitHub
commit 4f314b45f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

48
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,48 @@
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- nightly
- 1.51.0 # MSVR
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
# use some no_std target
- name: Install no_std target thumbv7em-none-eabihf
run: rustup target add thumbv7em-none-eabihf
- name: Build (no_std)
run: cargo build --verbose --target thumbv7em-none-eabihf
- name: Run tests
run: cargo test --verbose
style_checks:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- nightly
- 1.51.0 # MSVR
steps:
- uses: actions/checkout@v2
- name: Rustfmt
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy
- name: Rustdoc
run: cargo doc

View File

@ -15,6 +15,9 @@ homepage = "https://github.com/phip1611/tar-no-std"
repository = "https://github.com/phip1611/tar-no-std"
documentation = "https://docs.rs/tar-no-std"
# required because "env_logger" uses "log" but with dependency to std..
resolver = "2"
[dependencies]
bitflags = "1.3"
arrayvec = { version = "0.7", default-features = false }