Skip to content

Temporarily disable cargo-hack due to glam minimum 1 feature requirement #8

Temporarily disable cargo-hack due to glam minimum 1 feature requirement

Temporarily disable cargo-hack due to glam minimum 1 feature requirement #8

Workflow file for this run

name: Crate CI
# Runs for each commit/PR, but not tag push
on:
push:
branches:
- "**"
paths-ignore:
- "Writeups/**"
- "**/**.md"
pull_request:
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Linux Dependencies
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1.9.0
# setup-rust-toolchain adds `-D warnings` automatically
- name: Allow warnings in builds (for now)
run: echo "RUSTFLAGS=" >> $GITHUB_ENV
#- name: cargo fmt
# run: cargo fmt --all -- --check
- name: Run Clippy
run: cargo clippy --all-targets --all-features
- name: Build
run: cargo build --verbose
- name: Run Unit Tests
run: cargo test --all-targets --all-features
- name: Run Integration Tests
run: cargo test --all-targets --all-features -- --ignored --show-output --test-threads=1
# Need to rethink this due to glam requiring at least one math lib feature to compile.
# cargo-hack:
# name: cargo-hack
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install Linux Dependencies
# run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev
# - name: Setup Rust toolchain and cache
# uses: actions-rust-lang/setup-rust-toolchain@v1.9.0
# - name: Install cargo-hack
# uses: taiki-e/install-action@cargo-hack
# - name: Allow warnings in builds (for now)
# run: echo "RUSTFLAGS=" >> $GITHUB_ENV
# - run: cargo hack check --feature-powerset --no-dev-deps