Add CI job to do cargo check for multiple feature combination #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cargo Check Examples | |
on: | |
push: | |
branches: [main] | |
paths: | |
- '**.rs' | |
- '**.toml' | |
pull_request: | |
branches: [main] | |
paths: | |
- '**.rs' | |
- '**.toml' | |
jobs: | |
# Examples that will work with feature bot | |
full_feature_check: | |
name: Full Feature Example Check | |
strategy: | |
matrix: | |
example: [basic_bot, reactions, slash_commands, rich_presence] | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install Stable toolchain | |
uses: rs-workspace/[email protected] | |
- name: Install Dependencies | |
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev | |
- name: Cargo Check ${{ matrix.example }} | |
run: cargo check --example ${{ matrix.example }} --features "full docsrs" |