Skip to content

Commit 9914529

Browse files
authored
Merge pull request #168 from brentru/doxygen-all
Add Doxygen and Clang to Actions
2 parents c92b9b5 + ba4a796 commit 9914529

File tree

9 files changed

+2605
-62
lines changed

9 files changed

+2605
-62
lines changed

.github/workflows/release.yml

Lines changed: 67 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ jobs:
1212
release-wippersnapper:
1313
name: Release WipperSnapper
1414
runs-on: ubuntu-latest
15-
#needs: [build-samd, build-esp32, build-esp32s2]
16-
needs: [build-samd, build-esp32]
15+
needs: clang_and_doxy
1716
steps:
1817
- name: Download build artifacts from build-platform steps
1918
uses: actions/download-artifact@v2
@@ -29,46 +28,46 @@ jobs:
2928
wippersnapper.*.uf2
3029
wippersnapper.*.bin
3130
32-
# build-esp32s2:
33-
# name: Build WipperSnapper ESP32-S2
34-
# runs-on: ubuntu-latest
35-
# strategy:
36-
# fail-fast: false
37-
# matrix:
38-
# arduino-platform: ["funhouse_tinyusb", "magtag_tinyusb",
39-
# "metro_s2_tinyusb"]
40-
# steps:
41-
# - uses: actions/setup-python@v1
42-
# with:
43-
# python-version: '3.x'
44-
# - uses: actions/checkout@v2
45-
# - name: Get WipperSnapper version
46-
# run: |
47-
# git fetch --prune --unshallow --tags
48-
# git describe --dirty --tags
49-
# echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
50-
# - uses: actions/checkout@v2
51-
# with:
52-
# repository: brentru/ci-arduino
53-
# path: ci
54-
# - name: Install CI-Arduino
55-
# run: bash ci/actions_install.sh
56-
# - name: Install extra Arduino libraries
57-
# run: |
58-
# git clone --quiet https://github.com/brentru/Adafruit_MQTT_Library.git /home/runner/Arduino/libraries/Adafruit_MQTT_Library
59-
# - name: Build for ESP32-S2
60-
# run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
61-
# - name: Rename build artifacts to reflect the platform name
62-
# run: |
63-
# mv examples/*/build/*/Wippersnapper_demo.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
64-
# mv examples/*/build/*/Wippersnapper_demo.ino.bin wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
65-
# - name: upload build artifacts
66-
# uses: actions/upload-artifact@v2
67-
# with:
68-
# name: build-files
69-
# path: |
70-
# wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
71-
# wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
31+
build-esp32s2:
32+
name: Build WipperSnapper ESP32-S2
33+
runs-on: ubuntu-latest
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
arduino-platform: ["funhouse_tinyusb", "magtag_tinyusb",
38+
"metro_s2_tinyusb"]
39+
steps:
40+
- uses: actions/setup-python@v1
41+
with:
42+
python-version: '3.x'
43+
- uses: actions/checkout@v2
44+
- name: Get WipperSnapper version
45+
run: |
46+
git fetch --prune --unshallow --tags
47+
git describe --dirty --tags
48+
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
49+
- uses: actions/checkout@v2
50+
with:
51+
repository: brentru/ci-arduino
52+
path: ci
53+
- name: Install CI-Arduino
54+
run: bash ci/actions_install.sh
55+
- name: Install extra Arduino libraries
56+
run: |
57+
git clone --quiet https://github.com/brentru/Adafruit_MQTT_Library.git /home/runner/Arduino/libraries/Adafruit_MQTT_Library
58+
- name: Build for ESP32-S2
59+
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
60+
- name: Rename build artifacts to reflect the platform name
61+
run: |
62+
mv examples/*/build/*/Wippersnapper_demo.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
63+
mv examples/*/build/*/Wippersnapper_demo.ino.bin wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
64+
- name: upload build artifacts
65+
uses: actions/upload-artifact@v2
66+
with:
67+
name: build-files
68+
path: |
69+
wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
70+
wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
7271
7372
7473
build-esp32:
@@ -150,3 +149,29 @@ jobs:
150149
path: |
151150
wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
152151
wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.hex
152+
153+
clang_and_doxy:
154+
runs-on: ubuntu-latest
155+
needs: [build-samd, build-esp32, build-esp32s2]
156+
steps:
157+
- uses: actions/setup-python@v1
158+
with:
159+
python-version: '3.x'
160+
- uses: actions/checkout@v2
161+
162+
- uses: actions/checkout@v2
163+
with:
164+
repository: adafruit/ci-arduino
165+
path: ci
166+
167+
- name: pre-install
168+
run: bash ci/actions_install.sh
169+
170+
- name: clang
171+
run: python3 ci/run-clang-format.py -r -e "ci/*" -e "bin/*" -e src/nanopb -e src/wippersnapper -e src/pb.h -e src/provisioning/tinyusb src/
172+
173+
- name: doxygen
174+
env:
175+
GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
176+
PRETTYNAME : "Adafruit.io WipperSnapper Library"
177+
run: bash ci/doxy_gen_and_deploy.sh

0 commit comments

Comments
 (0)