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
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -168,11 +168,9 @@ jobs:
|
|||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Install taplo
|
- name: Install taplo
|
||||||
run: |
|
run: cargo install taplo-cli --locked
|
||||||
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
|
|
||||||
- name: Run Taplo
|
- name: Run Taplo
|
||||||
id: taplo
|
id: taplo
|
||||||
run: taplo fmt --check --diff
|
run: taplo fmt --check --diff
|
||||||
@ -180,7 +178,10 @@ jobs:
|
|||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
echo 'To fix toml fmt, please run `taplo fmt`'
|
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:
|
run-examples-on-windows-dx12:
|
||||||
|
@ -24,7 +24,9 @@ thiserror = "1.0"
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
bevy_tasks = { path = "../bevy_tasks", version = "0.14.0-dev" }
|
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"
|
approx = "0.5.1"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
Loading…
Reference in New Issue
Block a user