Skip to content

Commit

Permalink
Update to egui 0.31 (#95)
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Reich <r_andreas2@web.de>
  • Loading branch information
emilk and Wumpf authored Feb 5, 2025
1 parent 7e2be39 commit a1896aa
Show file tree
Hide file tree
Showing 7 changed files with 543 additions and 204 deletions.
59 changes: 13 additions & 46 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Install packages (Linux)
if: runner.os == 'Linux'
uses: awalsh128/cache-apt-pkgs-action@v1.3.0
uses: awalsh128/cache-apt-pkgs-action@v1.4.3
with:
# some deps used by eframe, for checking the example
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev # libgtk-3-dev is used by rfd
Expand All @@ -38,64 +38,34 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- name: check --all-features
uses: actions-rs/cargo@v1
with:
command: check
args: --all-features --all-targets
run: cargo check --all-features --all-targets

- name: check default features
uses: actions-rs/cargo@v1
with:
command: check
args: --all-targets
run: cargo check --all-targets

- name: check --no-default-features
uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features --lib --all-targets
run: cargo check --no-default-features --lib --all-targets

- name: Test doc-tests
uses: actions-rs/cargo@v1
with:
command: test
args: --doc --all-features
run: cargo test --doc --all-features

- name: cargo doc --lib
uses: actions-rs/cargo@v1
with:
command: doc
args: --lib --no-deps --all-features
run: cargo doc --lib --no-deps --all-features

- name: cargo doc --document-private-items
uses: actions-rs/cargo@v1
with:
command: doc
args: --document-private-items --no-deps --all-features
run: cargo doc --document-private-items --no-deps --all-features

- name: Build tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-run
run: cargo test --all-features --no-run

- name: Run test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
run: cargo test --all-features

- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings
run: cargo clippy --all-targets --all-features -- -D warnings

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

Expand All @@ -116,10 +86,7 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Check wasm32
uses: actions-rs/cargo@v1
with:
command: check
args: --target wasm32-unknown-unknown --lib
run: cargo check --target wasm32-unknown-unknown --lib

- name: Clippy wasm32
env:
Expand All @@ -133,7 +100,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
- uses: EmbarkStudios/cargo-deny-action@v2
with:
rust-version: "1.81.0"
log-level: warn
Expand Down
Loading

0 comments on commit a1896aa

Please # to comment.