Skip to content

Commit

Permalink
Merge pull request #280 from KodrAus/fix/build
Browse files Browse the repository at this point in the history
Add more platform coverage to CI
  • Loading branch information
KodrAus committed May 3, 2022
2 parents 31401a1 + dcfd673 commit f38ce72
Show file tree
Hide file tree
Showing 17 changed files with 184 additions and 348 deletions.
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.

0 comments on commit f38ce72

Please sign in to comment.