Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github Actions CI part 2 #487

Merged
merged 15 commits into from
Aug 30, 2020
176 changes: 117 additions & 59 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,21 @@ on:

jobs:
os_tests:
name: ${{ matrix.os }} - ${{ matrix.channel }}-${{ matrix.rust_target }}
name: "Tests/OS: ${{ matrix.os }} - ${{ matrix.channel }}-${{ matrix.rust_target }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
exclude:
- os: macos-10.15
rust_target: x86_64-gnu
include:
- enabled_feature_guid: true
feature_guid: '--feature "guid"'
- enabled_feature_guid: false
feature_guid: ''
- enabled_feature_serde: true
feature_serde: '--feature "serde"'
- enabled_feature_serde: false
feature_std: ''
- enabled_feature_slog: true
feature_slog: '--feature "slog"'
- enabled_feature_slog: false
feature_slog: ''
- enabled_feature_std: true
feature_std: '--feature "std"'
- enabled_feature_std: false
feature_std: ''
- enabled_feature_v1: true
feature_v1: '--feature "v1"'
- enabled_feature_v1: false
feature_v1: ''
- enabled_feature_v3: true
feature_v3: '--feature "v3"'
- enabled_feature_v3: false
feature_v3: ''
- enabled_feature_v4: true
feature_v4: '--feature "v4"'
- enabled_feature_v4: false
feature_v4: ''
- enabled_feature_v5: true
feature_v5: '--feature "v5"'
- enabled_feature_v5: false
feature_v5: ''
- os: macos-10.15
rust_target: x86_64-darwin
rust_target: x86_64-msvc
- os: windows-2019
rust_target: x86_64-apple-darwin
- os: ubuntu-20.04
rust_target: x86_64-msvc
- os: ubuntu-20.04
rust_target: x86_64-apple-darwin
channel:
- stable
- beta
Expand All @@ -65,30 +36,9 @@ jobs:
- ubuntu-20.04
rust_target:
- x86_64-gnu
enabled_feature_guid:
- true
- false
enabled_feature_serde:
- true
- false
enabled_feature_slog:
- true
- false
enabled_feature_std:
- true
- false
enabled_feature_v1:
- true
- false
enabled_feature_v3:
- true
- false
enabled_feature_v4:
- true
- false
enabled_feature_v5:
- true
- false
- x86_64-msvc
- x86_64-apple-darwin

steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -99,3 +49,111 @@ jobs:
override: true
profile: minimal
toolchain: ${{ matrix.channel }}-${{ matrix.rust_target }}

- name: Build with --no-default-features
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features
- name: Test with --no-default-features
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features

- name: Build with --all-features
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features
- name: Test with --all-features
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features

- name: Build with default features
uses: actions-rs/cargo@v1
with:
command: build
- name: Test with default features
uses: actions-rs/cargo@v1
with:
command: test

- name: Build with --features guid
uses: actions-rs/cargo@v1
with:
command: build
args: --features guid
- name: Test with --features guid
uses: actions-rs/cargo@v1
with:
command: test
args: --features guid

- name: Build with --features serde
uses: actions-rs/cargo@v1
with:
command: build
args: --features serde
- name: Test with --features serde
uses: actions-rs/cargo@v1
with:
command: test
args: --features serde

- name: Build with --features slog
uses: actions-rs/cargo@v1
with:
command: build
args: --features slog
- name: Test with --features slog
uses: actions-rs/cargo@v1
with:
command: test
args: --features slog

- name: Build with --features v1
uses: actions-rs/cargo@v1
with:
command: build
args: --features v1
- name: Test with --features serde
uses: actions-rs/cargo@v1
with:
command: test
args: --features v1

- name: Build with --features v3
uses: actions-rs/cargo@v1
with:
command: build
args: --features v3
- name: Test with --features v3
uses: actions-rs/cargo@v1
with:
command: test
args: --features v3

- name: Build with --features v4
uses: actions-rs/cargo@v1
with:
command: build
args: --features v4
- name: Test with --features v4
uses: actions-rs/cargo@v1
with:
command: test
args: --features v4

- name: Build with --features v5
uses: actions-rs/cargo@v1
with:
command: build
args: --features v5
- name: Test with --features v5
uses: actions-rs/cargo@v1
with:
command: test
args: --features v5
12 changes: 1 addition & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,13 @@ matrix:
- rustup target add thumbv6m-none-eabi
script:
- cargo build --no-default-features --target thumbv6m-none-eabi
- rust: 1.32.0
env:
- LABEL="msrv"
script:
- cargo test --features "serde std v4"


notifications:
email:
on_success: never

os: linux

rust:
- stable
- beta
- nightly

script:
- cargo build --no-default-features
- cargo build --all-features
Expand Down
18 changes: 0 additions & 18 deletions appveyor.yml

This file was deleted.