Skip to content

Crossplatform actions (#83) #130

Crossplatform actions (#83)

Crossplatform actions (#83) #130

Workflow file for this run

name: Pull Request
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
include:
- cargo-features: --no-default-features --features nalgebra --features glam --features gemini
- cargo-features: --no-default-features --features nalgebra --features glam
name: check
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v1
- name: Check
run: cargo check ${{ matrix.cargo-features }}
- name: Check Examples
run: cargo check ${{ matrix.cargo-features }} --examples
- name: Check Tests
run: cargo check ${{ matrix.cargo-features }} --tests
- name: Doc
run: cargo doc --features nalgebra --features glam
- name: Style
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy -- -D warnings
dependabot:
name: 'Dependabot automerge'
needs: [build]
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} # Detect that the PR author is dependabot
steps:
- uses: fastify/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}