mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
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:
parent
9dfef453f9
commit
5d3f66fbaf
2 changed files with 9 additions and 6 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue