Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libncurses-dev
sudo apt-get install -y libncurses-dev cppcheck

- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: brew install cppcheck

- name: Set compiler
run: |
Expand All @@ -35,6 +39,9 @@ jobs:
echo "CC=clang" >> $GITHUB_ENV
fi

- name: Lint (cppcheck static analysis)
run: make lint

- name: Validate (tests + examples, -Werror)
run: make validate

Expand Down
43 changes: 42 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libncurses-dev
sudo apt-get install -y libncurses-dev cppcheck

- name: Extract version from xelp.h
id: version
Expand All @@ -40,6 +40,9 @@ jobs:
exit 1
fi

- name: Lint (cppcheck static analysis)
run: make lint

- name: Validate (tests + examples, -Werror)
run: make validate

Expand Down Expand Up @@ -83,3 +86,41 @@ jobs:
body_path: /tmp/release_notes.md
draft: false
prerelease: false

pio-publish:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install PlatformIO
run: pip install platformio

- name: Publish to PlatformIO registry
run: pio pkg publish . --no-interactive
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}

idf-publish:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install idf-component-manager
run: pip install idf-component-manager

- name: Pack and upload to ESP-IDF Component Registry
run: |
compote component pack --name xelp
compote component upload --name xelp
env:
IDF_COMPONENT_API_TOKEN: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
Loading