Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Github Workflows #5158

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 34 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ env:
NIGHTLY_VERSION: nightly-2024-09-11

jobs:
fmt-crank-check-test:
name: Format + check + test
fmt-lint-check:
name: Format + lint + check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand All @@ -35,6 +35,12 @@ jobs:
- name: Lint vertical spacing
run: ./scripts/lint.py

- name: clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: clippy release
run: cargo clippy --all-targets --all-features --release -- -D warnings

- name: check --all-features
run: cargo check --locked --all-features --all-targets

Expand All @@ -60,6 +66,32 @@ jobs:
- name: cargo check -p test_egui_extras_compilation
run: cargo check -p test_egui_extras_compilation

# ---------------------------------------------------------------------------

test_doc:
name: Check docs
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.76.0

- name: Install packages (Linux)
if: runner.os == 'Linux'
uses: awalsh128/[email protected]
with:
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd
version: 1.0
execute_install_scripts: true

- name: Set up cargo cache
uses: Swatinem/rust-cache@v2

- name: Test
run: cargo test --all-features

- name: Test doc-tests
run: cargo test --doc --all-features

Expand All @@ -69,15 +101,6 @@ jobs:
- name: cargo doc --document-private-items
run: cargo doc --document-private-items --no-deps --all-features

- name: Test
run: cargo test --all-features

- name: clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: clippy release
run: cargo clippy --all-targets --all-features --release -- -D warnings

# ---------------------------------------------------------------------------

check_wasm:
Expand Down
Loading