-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edbd10a
commit b0060f2
Showing
5 changed files
with
85 additions
and
40 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
test: | ||
name: Test ${{ matrix.rust }} on ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
# - 1.39.0 | ||
|
||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macOS-latest | ||
|
||
include: | ||
- rust: stable | ||
features: "" | ||
- rust: beta | ||
features: "" | ||
- rust: nightly | ||
features: "--features nightly" | ||
benches: true | ||
# Limit the Happy Eyeballs tests to Linux | ||
- rust: stable | ||
os: ubuntu-latest | ||
features: "--features __internal_happy_eyeballs_tests" | ||
# - rust: 1.39.0 | ||
# features: "--no-default-features --features runtime" | ||
# build-only: true | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install Rust (${{ matrix.rust }}) | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
|
||
- name: Build only | ||
if: matrix.build-only | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: ${{ matrix.features }} | ||
|
||
- name: Test | ||
if: matrix.build-only != true | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: ${{ matrix.features }} | ||
|
||
- name: Test all benches | ||
if: matrix.benches && matrix.build-only != true | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --benches ${{ matrix.features }} |
This file was deleted.
Oops, something went wrong.
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
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
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