Skip to content

Commit 5d3f66f

Browse files
ameknitemockersf
andauthored
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 <[email protected]>
1 parent 9dfef45 commit 5d3f66f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,19 +168,20 @@ jobs:
168168
timeout-minutes: 30
169169
steps:
170170
- uses: actions/checkout@v4
171+
- uses: dtolnay/rust-toolchain@stable
171172
- name: Install taplo
172-
run: |
173-
curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-full-linux-x86_64.gz \
174-
| gzip -d - \
175-
| install -m 755 /dev/stdin /usr/local/bin/taplo
173+
run: cargo install taplo-cli --locked
176174
- name: Run Taplo
177175
id: taplo
178176
run: taplo fmt --check --diff
179177
- name: Taplo info
180178
if: failure()
181179
run: |
182180
echo 'To fix toml fmt, please run `taplo fmt`'
183-
echo 'Or if you use VSCode, use the Even Better Toml extension'
181+
echo 'To check for a diff, run `taplo fmt --check --diff'
182+
echo 'You can find taplo here: https://taplo.tamasfe.dev/'
183+
echo 'Or if you use VSCode, use the `Even Better Toml` extension with 2 spaces'
184+
echo 'You can find the extension here: https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml'
184185
185186
186187
run-examples-on-windows-dx12:

crates/bevy_transform/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ thiserror = "1.0"
2424

2525
[dev-dependencies]
2626
bevy_tasks = { path = "../bevy_tasks", version = "0.14.0-dev" }
27-
bevy_math = { path = "../bevy_math", version = "0.14.0-dev", features = ["approx"] }
27+
bevy_math = { path = "../bevy_math", version = "0.14.0-dev", features = [
28+
"approx",
29+
] }
2830
approx = "0.5.1"
2931

3032
[features]

0 commit comments

Comments
 (0)