31 lines
690 B
YAML
31 lines
690 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Check build (no features)
|
|
run: cargo check --no-default-features
|
|
|
|
- name: Check build (default features)
|
|
run: cargo check --default-features-features --all-features 2>&1 || true
|
|
|
|
- name: Show error output
|
|
run: |
|
|
echo "Build completed. Checking for any errors..."
|
|
cargo check --no-default-features 2>&1 |