-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 922 Bytes
/
Copy pathfmt.yml
File metadata and controls
33 lines (30 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Formatting
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
fmt:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup soldr
id: setup-soldr
uses: zackees/setup-soldr@v0.9.62
with:
cache: true
build-cache: true
target-cache: false
prebuild-deps: none
# Opt out of the implicit `SOLDR_LINKER=fast` injection so cargo /
# rust-toolchain.toml stays in charge. Silences the routine
# "defaulting SOLDR_LINKER=fast" warning (issue #400 /
# setup-soldr#377). `cargo fmt` does not link anything so this
# is purely cosmetic, but it removes the annotation.
linker: platform-default
- name: Check formatting
run: soldr cargo fmt --all -- --check