Skip to content

Commit

Permalink
Enable CI checks for more targets and feature combinations.
Browse files Browse the repository at this point in the history
  • Loading branch information
de-vri-es committed Apr 9, 2024
1 parent 7477603 commit a726f6f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,37 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --workspace --all-targets

check_configurations:
name: Build and test
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "-D warnings"
strategy:
matrix:
include:
target:
- "x84_64-unknown-linux-gnu"
- "aarch64-unknown-linux-gnu"
- "x86_64-pc-windows-msvc"
- "x86_64-apple-darwin"
- "x86_64-unknown-freebsd"
- "x86_64-unknown-netbsd"
with-rs4xx: ["", "--features rs4xx"]
with-unix: ["", "--features unix"]
with-windows: ["", "--features windows"]
steps:
- name: Checkout code
uses: actions/checkout@master
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ matrix.target }}
- name: Check
run: cargo clippy --workspace --all-targets --color=always ${{ matrix.with-rs4xx }} ${{ matrix.with-unix }} ${{ matrix.with-windows }}
- name: Doc
run: cargo doc --workspace --all-targets --color=always ${{ matrix.with-rs4xx }} ${{ matrix.with-unix }} ${{ matrix.with-windows }}

0 comments on commit a726f6f

Please sign in to comment.