diff options
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r-- | .github/workflows/rust.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..1cba5e0 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,30 @@ +name: Rust + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build (Default) + run: cargo build --verbose + - name: Run tests (Default) + run: cargo test --verbose + - name: Build (Actix) + run: cd ipfs-api; cargo build --verbose --features with-actix --no-default-features + - name: Run tests (Actix) + run: cd ipfs-api; cargo test --verbose --features with-actix --no-default-features + - name: Build (Hyper with rustls) + run: cd ipfs-api; cargo build --verbose --features with-hyper-rustls --no-default-features + - name: Run tests (Hyper with rustls) + run: cd ipfs-api; cargo test --verbose --features with-hyper-rustls --no-default-features |