Fix taplo CI - toml fmt (#12037)

# Objective

- Taplo in CI is not running. The link used to download taplo doesn't
work anymore.

## Solution
- Compile taplo directly with cargo
- Improve docs a little
- Run taplo

---------

Co-authored-by: François <mockersf@gmail.com>
This commit is contained in:
Ame 2024-02-22 12:13:45 -06:00 committed by GitHub
parent 9dfef453f9
commit 5d3f66fbaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 6 deletions

View file

@ -168,11 +168,9 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install taplo
run: |
curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-full-linux-x86_64.gz \
| gzip -d - \
| install -m 755 /dev/stdin /usr/local/bin/taplo
run: cargo install taplo-cli --locked
- name: Run Taplo
id: taplo
run: taplo fmt --check --diff
@ -180,7 +178,10 @@ jobs:
if: failure()
run: |
echo 'To fix toml fmt, please run `taplo fmt`'
echo 'Or if you use VSCode, use the Even Better Toml extension'
echo 'To check for a diff, run `taplo fmt --check --diff'
echo 'You can find taplo here: https://taplo.tamasfe.dev/'
echo 'Or if you use VSCode, use the `Even Better Toml` extension with 2 spaces'
echo 'You can find the extension here: https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml'
run-examples-on-windows-dx12:

View file

@ -24,7 +24,9 @@ thiserror = "1.0"
[dev-dependencies]
bevy_tasks = { path = "../bevy_tasks", version = "0.14.0-dev" }
bevy_math = { path = "../bevy_math", version = "0.14.0-dev", features = ["approx"] }
bevy_math = { path = "../bevy_math", version = "0.14.0-dev", features = [
"approx",
] }
approx = "0.5.1"
[features]