Skip to content

update artifact

update artifact #180

Workflow file for this run

# matth-x/MicroOcpp
# Copyright Matthias Akstaller 2019 - 2024
# MIT License
name: documentation
on:
push:
branches:
- feature/benchmarks
permissions:
contents: write
jobs:
build_firmware_size:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v4
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- 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 # 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 file
uses: actions/upload-artifact@v4
with:
name: firmware_v16.elf
path: "${{ github.workspace }}/firmware_v16.elf"
retention-days: 1
if-no-files-found: error
evaluate_firmware_size:
runs-on: ubuntu-latest
steps:
- name: Get v16 firmware file
uses: actions/download-artifact@v4
run-id: ${{ github.event.workflow_run.id }}

Check failure on line 52 in .github/workflows/documentation.yml

View workflow run for this annotation

GitHub Actions / documentation

Invalid workflow file

The workflow is not valid. .github/workflows/documentation.yml (Line: 52, Col: 7): Unexpected value 'run-id'
with:
name: firmware_v16.elf
- name: Run bloaty
uses: carlosperate/bloaty-action@v1
with:
bloaty-args: ./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:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force