File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,12 @@ jobs:
25
25
run : |
26
26
sudo apt-get update
27
27
sudo apt-get install -y nasm make
28
- python3 -m pip install requests xbstrap
29
28
- name : Build Documentation
30
29
run : make doc
31
30
- name : Formatting Check
32
31
run : |
33
- ./aero.py --fmt
34
- git diff-index --quiet HEAD -- || (printf "${RED}error${NOCOLOR}: formatting check failed, run \`./aero.py -- fmt\`\n" && exit 1)
32
+ make check_fmt
33
+ git diff-index --quiet HEAD -- || (printf "${RED}error${NOCOLOR}: formatting check failed, run \`make fmt\`\n" && exit 1)
35
34
- name : Deploy documentation
36
35
uses : peaceiris/actions-gh-pages@v3
37
36
if : github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule')
Original file line number Diff line number Diff line change 86
86
ifeq ($(open ) ,yes)
87
87
xdg-open target/doc/index.html
88
88
endif
89
+
90
+ fmt :
91
+ cd $(SOURCE_DIR ) && cargo fmt
92
+
93
+ check_fmt :
94
+ cd $(SOURCE_DIR ) && cargo fmt -- --check
You can’t perform that action at this time.
0 commit comments