@@ -2,9 +2,46 @@ name: Build
22
33on : [pull_request, push, repository_dispatch]
44
5+ concurrency :
6+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+ cancel-in-progress : true
8+
59jobs :
10+ pre-commit :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Setup Python
14+ uses : actions/setup-python@v4
15+ with :
16+ python-version : ' 3.x'
17+
18+ - name : Checkout code
19+ uses : actions/checkout@v3
20+
21+ - name : Run codespell
22+ uses : codespell-project/actions-codespell@master
23+
24+ - name : Checkout adafruit/ci-arduino
25+ uses : actions/checkout@v3
26+ with :
27+ repository : adafruit/ci-arduino
28+ path : ci
29+
30+ - name : pre-install
31+ run : bash ci/actions_install.sh
32+
33+ - name : clang
34+ run : python3 ci/run-clang-format.py -r src/arduino
35+
36+ - name : doxygen
37+ env :
38+ GH_REPO_TOKEN : ${{ secrets.GH_REPO_TOKEN }}
39+ PRETTYNAME : " Adafruit TinyUSB Library"
40+ run : bash ci/doxy_gen_and_deploy.sh
41+
642 build :
743 runs-on : ubuntu-latest
44+ needs : pre-commit
845 strategy :
946 fail-fast : false
1047 matrix :
4784
4885 - name : test platforms
4986 run : python3 ci/build_platform.py ${{ matrix.arduino-platform }}
50-
51- clang_and_doxy :
52- runs-on : ubuntu-latest
53- needs : build
54- steps :
55- - name : Setup Python
56- uses : actions/setup-python@v4
57- with :
58- python-version : ' 3.x'
59-
60- - name : Checkout code
61- uses : actions/checkout@v3
62-
63- - name : Checkout adafruit/ci-arduino
64- uses : actions/checkout@v3
65- with :
66- repository : adafruit/ci-arduino
67- path : ci
68-
69- - name : pre-install
70- run : bash ci/actions_install.sh
71-
72- - name : clang
73- run : python3 ci/run-clang-format.py -r src/arduino
74-
75- - name : doxygen
76- env :
77- GH_REPO_TOKEN : ${{ secrets.GH_REPO_TOKEN }}
78- PRETTYNAME : " Adafruit TinyUSB Library"
79- run : bash ci/doxy_gen_and_deploy.sh
0 commit comments