Skip to content

Commit

Permalink
Update egui and related dependencies and fix build and actions (#53)
Browse files Browse the repository at this point in the history
* Update egui and related dependencies

* Pin nightly toolchain

* Clippy lint

* Use stable rust toolchain

* Run lints on stable

* Split formatting and linting jobs

* Remove dependency cache from formatting job

* Convert all actions to stable toolchain
  • Loading branch information
avsaase authored Aug 21, 2024
1 parent 0555cfd commit c1f6a9f
Show file tree
Hide file tree
Showing 10 changed files with 1,313 additions and 550 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@stable

- name: Cache dependencies
id: extcache
Expand Down
28 changes: 20 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@stable

- name: Install packages (Linux)
if: ${{ matrix.target == 'ubuntu-latest' }}
Expand All @@ -42,14 +42,29 @@ jobs:
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@stable

- name: Cache dependencies
uses: Swatinem/rust-cache@v2

- name: Run cargo test
run: cargo test --all-targets --all-features

formatting:
name: Formatting
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt

- name: Run cargo fmt
run: cargo +nightly fmt --check

lints:
name: Lints
runs-on: windows-latest
Expand All @@ -58,15 +73,12 @@ jobs:
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
components: clippy

- name: Cache dependencies
uses: Swatinem/rust-cache@v2

- name: Run cargo fmt
run: cargo fmt --check

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

0 comments on commit c1f6a9f

Please sign in to comment.