File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 9
9
env :
10
10
CARGO_TERM_COLOR : always
11
11
12
+ RED : ' \033[1;31m'
13
+ NOCOLOR : ' \033[0m'
14
+
12
15
jobs :
13
16
build :
14
17
runs-on : ubuntu-latest
24
27
sudo apt-get install -y nasm meson ninja-build
25
28
python3 -m pip install requests xbstrap
26
29
sudo ./tools/deps.sh
27
- - name : Build documentation
30
+ - name : Build Documentation
28
31
run : ./aero.py --document
32
+ - name : Formatting Check
33
+ run : |
34
+ ./aero.py --fmt
35
+ git diff-index --quiet HEAD -- || (printf "${RED}error${NOCOLOR}: formatting check failed, run \`./aero.py --fmt\`\n" && exit 1)
29
36
- name : Deploy documentation
30
37
uses : peaceiris/actions-gh-pages@v3
31
38
if : github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule')
You can’t perform that action at this time.
0 commit comments