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

Add more platform coverage to CI #280

Merged
merged 8 commits into from May 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
57 changes: 36 additions & 21 deletions .github/workflows/rust.yml
Expand Up @@ -7,32 +7,47 @@ env:

jobs:
check:
name: Test
runs-on: ubuntu-latest
name: "Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }}-${{ matrix.rust_target }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
rust:
- stable
- beta
- nightly
- 1.46.0
exclude:
- os: macos-10.15
rust_target: x86_64-gnu
- os: macos-10.15
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
- nightly
os:
- macos-10.15
- windows-2019
- ubuntu-20.04
rust_target:
- x86_64-gnu
- x86_64-msvc
- x86_64-apple-darwin

steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: ${{ matrix.channel }}-${{ matrix.rust_target }}

- name: Default features
uses: actions-rs/cargo@v1
with:
command: test
args: --features example_generated
- name: Tests
run: cargo test --features example_generated

embedded:
name: Build (embedded)
Expand Down
2 changes: 0 additions & 2 deletions Cargo.toml
Expand Up @@ -25,13 +25,11 @@ compiler_builtins = { version = '0.1.2', optional = true }
[dev-dependencies]
trybuild = "1.0"
rustversion = "1.0"
walkdir = "2.3"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"

[features]
default = []
example_generated = []
rustc-dep-of-std = ["core", "compiler_builtins"]

Expand Down
3 changes: 0 additions & 3 deletions bors.toml

This file was deleted.