Skip to content

Commit

Permalink
update artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
matth-x committed Sep 2, 2024
1 parent 75b3ccf commit 3ab3a6a
Showing 1 changed file with 37 additions and 7 deletions.
44 changes: 37 additions & 7 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,51 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Check paths
run: |
pwd
readlink -e ~
- name: Run PlatformIO
run: pio ci --lib="." --build-dir="${{ github.workspace }}/../build" --keep-build-dir --project-conf="./tests/benchmarks/firmware_size/platformio.ini" -e v16 ./tests/benchmarks/firmware_size/main_v16.cpp
- name: Move firmware files
- name: Move firmware files # change path to location without parent dir ('..') statement (to make upload-artifact happy)
run: mv "${{ github.workspace }}/../build/.pio/build/v16/firmware.elf" "${{ github.workspace }}/firmware_v16.elf"
- name: Upload v16 firmware files
- name: Upload v16 firmware file
uses: actions/upload-artifact@v4
with:
name: Firmware v16 linker file
name: firmware_v16.elf
path: "${{ github.workspace }}/firmware_v16.elf"
if-no-files-found: error

evaluate_firmware_size:
- name: Get build tools
run: |
sudo apt update
sudo apt install build-essential cmake
sudo apt -y install gcc-9 g++-9
g++ --version
- name: Check out bloaty
uses: actions/checkout@v3
with:
repository: google/bloaty
ref: 379d5305670c00c36a57e608079fd253f13bde63
path: "${{ github.workspace }}/bloaty"
submodules: recursive
- name: Install bloaty
run: |
cd "${{ github.workspace }}/bloaty"
cmake -B "${{ github.workspace }}/bloaty/build" -G Ninja -S "${{ github.workspace }}/bloaty"
cmake --build "${{ github.workspace }}/bloaty/build"
cmake --build "${{ github.workspace }}/bloaty/build" --target install
- name: Get v16 firmware file
uses: actions/download-artifact@v4
with:
name: firmware_v16.elf
- name: Run bloaty
run: |
bloaty ./firmware_v16.elf -d compileunits --csv -n 0 > bloaty_v16.csv
- name: Upload v16 bloaty report
uses: actions/upload-artifact@v4
with:
name: bloaty_v16.csv
path: bloaty_v16.csv
if-no-files-found: error

deploy:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 3ab3a6a

Please sign in to comment.