-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch .vscode extension to dependi and fix rust checks (#18)
The `serayuzgur.crates` extension is deprecated and causes a warning in vs code.
- Loading branch information
Showing
2 changed files
with
18 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,80 +22,54 @@ jobs: | |
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: default | ||
toolchain: 1.80.0 | ||
toolchain: 1.81.0 | ||
override: true | ||
|
||
- name: Install packages (Linux) | ||
if: runner.os == 'Linux' && false # TODO: enable if eframe is part of the project, otherwise remove | ||
uses: awalsh128/cache-apt-pkgs-action@v1.3.0 | ||
uses: awalsh128/cache-apt-pkgs-action@v1.4.3 | ||
with: | ||
# some deps used by eframe, if that is part of the project | ||
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev # libgtk-3-dev is used by rfd | ||
version: 1.0 | ||
execute_install_scripts: true | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.39.0 | ||
|
||
- name: Set up cargo cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Rustfmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
run: pixi run cargo fmt --all -- --check | ||
|
||
- name: check --all-features | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
args: --all-features --all-targets | ||
run: pixi run cargo check --all-features --all-targets | ||
|
||
- name: check default features | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
args: --all-targets | ||
run: pixi 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: pixi run cargo check --no-default-features --all-targets | ||
|
||
- name: Test doc-tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --doc --all-features | ||
run: pixi 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: pixi 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: pixi 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: pixi run cargo build --tests --all-features | ||
|
||
- name: Run test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --all-features | ||
run: pixi run cargo test --all-features | ||
|
||
- name: Clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-targets --all-features -- -D warnings | ||
run: pixi run cargo clippy --all-targets --all-features -- -D warnings | ||
|
||
# --------------------------------------------------------------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters