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 a199b30
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,38 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --workspace --all-targets

check_configurations:
name: Check codebase
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "-D warnings"
strategy:
matrix:
target:
- "x86_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: Install toolchain
run: rustup target add ${{ matrix.target }}
- name: Check
run: cargo clippy --workspace --all-targets --color=always --target ${{ matrix.target }} ${{ matrix.with-rs4xx }} ${{ matrix.with-unix }} ${{ matrix.with-windows }}
- name: Doc
run: cargo doc --workspace --color=always --target ${{ matrix.target }} ${{ matrix.with-rs4xx }} ${{ matrix.with-unix }} ${{ matrix.with-windows }}

0 comments on commit a199b30

Please sign in to comment.