Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Commit bb2e82b

Browse files
committed
Use github actions; remove travis
1 parent 551d1d3 commit bb2e82b

2 files changed

Lines changed: 50 additions & 28 deletions

File tree

.github/workflows/build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
on: [push, pull_request]
2+
name: hyper-rustls
3+
4+
jobs:
5+
build:
6+
name: "Build and test"
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
# test a bunch of toolchains on ubuntu
11+
rust:
12+
- stable
13+
- beta
14+
- nightly
15+
os: [ubuntu-18.04]
16+
# but only stable on macos/windows (slower platforms)
17+
include:
18+
- os: macos-latest
19+
rust: stable
20+
- os: windows-latest
21+
rust: stable
22+
steps:
23+
- name: Checkout sources
24+
uses: actions/checkout@v2
25+
26+
- name: Install ${{ matrix.rust }} toolchain
27+
uses: actions-rs/toolchain@v1
28+
with:
29+
toolchain: ${{ matrix.rust }}
30+
override: true
31+
32+
- name: cargo test (debug; default features)
33+
run: cargo test
34+
env:
35+
RUST_BACKTRACE: 1
36+
37+
- name: cargo test (debug; native-tokio only)
38+
run: cargo test --no-default-features --features native-tokio
39+
env:
40+
RUST_BACKTRACE: 1
41+
42+
- name: cargo test (debug; webpki-tokio only)
43+
run: cargo test --no-default-features --features webpki-tokio
44+
45+
- name: cargo test (debug; no default features)
46+
run: cargo test --no-default-features
47+
48+
- name: cargo test (release)
49+
run: cargo test --release
50+

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)