Skip to content

Commit

Permalink
Merge pull request #210 from OpenShock/develop
Browse files Browse the repository at this point in the history
Add OpenShock Core v2 support
  • Loading branch information
LucHeart authored Mar 5, 2024
2 parents 9e7646d + f0eba5e commit 93c3694
Show file tree
Hide file tree
Showing 18 changed files with 320 additions and 268 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-firmware/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ runs:
- uses: actions/checkout@v4
if: ${{ !inputs.skip-checkout }}

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.platformio/platforms
~/.platformio/packages
~/.platformio/.cache
key: pio-${{ runner.os }}-${{ hashFiles('platformio.ini', 'requirements.txt') }}

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: 'pip'
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/build-staticfs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ runs:
- uses: actions/checkout@v4
if: ${{ !inputs.skip-checkout }}

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.platformio/platforms
~/.platformio/packages
~/.platformio/.cache
key: pio-${{ runner.os }}-${{ hashFiles('platformio.ini', 'requirements.txt') }}

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: 'pip'
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/merge-partitions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ inputs:
python-version:
description: 'Python version to use'
required: true
release-channel:
description: 'Release channel that describes this upload'
version:
description: 'Version of the firmware'
required: true
board:
description: 'Board name to merge partitions for'
Expand All @@ -26,7 +26,7 @@ runs:
boards
chips
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: 'pip'
Expand All @@ -49,7 +49,7 @@ runs:
shell: bash
run: |
python scripts/merge_image.py ${{ inputs.board }}
mv merged.bin OpenShock_${{ inputs.board }}_${{ inputs.release-channel }}.bin
mv merged.bin OpenShock_${{ inputs.board }}_${{ inputs.version }}.bin
- name: Upload merged firmware binary
uses: actions/upload-artifact@v4
Expand Down
41 changes: 35 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,50 @@

version: 2
updates:
# Daily checks for updates in Github Actions (CI/CD workflows)
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
day: 'monday'
time: '06:00'
groups:
ci-cd:
patterns:
- '*' # Group all updates together

# Daily checks for npm package updates in CI-CD scripts
- package-ecosystem: 'npm'
directory: '/.github/scripts'
schedule:
interval: 'weekly'
day: 'monday'
time: '06:00'
groups:
ci-cd:
patterns:
- '*' # Group all updates together

# Check for Github Actions version updates (for CI/CD)
- package-ecosystem: "github-actions"
directory: "/"
# Daily checks for pip package updates in build system scripts
- package-ecosystem: 'pip'
directory: '/'
schedule:
interval: "daily"
interval: 'weekly'
day: 'monday'
time: '06:00'
groups:
build-system:
patterns:
- '*' # Group all updates together

# Check for npm updates
# Daily checks for npm package updates in frontend
- package-ecosystem: 'npm'
directory: '/frontend'
schedule:
interval: 'weekly'
day: 'monday'
time: '06:00'
groups:
npm-dependencies:
frontend:
patterns:
- '*' # Group all updates together
12 changes: 6 additions & 6 deletions .github/scripts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- uses: ./.github/actions/merge-partitions
with:
python-version: ${{ env.PYTHON_VERSION }}
release-channel: ${{ needs.getvars.outputs.release-channel }}
version: ${{ needs.getvars.outputs.version }}
board: ${{ matrix.board }}
skip-checkout: true

Expand Down
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,26 @@
[![GitHub Sponsors](https://img.shields.io/badge/GitHub-Sponsors-ff69b4)](https://github.com/sponsors/openshock)
[![Discord](https://img.shields.io/discord/1078124408775901204)](https://discord.gg/openshock)

| | | | |
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Master | [![Build Status](https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml/badge.svg?branch=master)](https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml) | [![CodeQL Status](https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml) | [![Coverage Status](https://coveralls.io/repos/github/openshock/firmware/badge.svg?branch=master)](https://coveralls.io/github/openshock/firmware?branch=master) |
| Beta | [![Build Status](https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml/badge.svg?branch=beta)](https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml) | [![CodeQL Status](https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml/badge.svg?branch=beta)](https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml) | [![Coverage Status](https://coveralls.io/repos/github/openshock/firmware/badge.svg?branch=beta)](https://coveralls.io/github/openshock/firmware?branch=beta) |
| Develop | [![Build Status](https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml/badge.svg?branch=develop)](https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml) | [![CodeQL Status](https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml/badge.svg?branch=develop)](https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml) | [![Coverage Status](https://coveralls.io/repos/github/openshock/firmware/badge.svg?branch=develop)](https://coveralls.io/github/openshock/firmware?branch=develop) |
<table>
<tr>
<td>master</td>
<td><a href="https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml"><img src="https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml/badge.svg?branch=master" alt="Build Status" /></a></td>
<td><a href="https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml"><img src="https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml/badge.svg?branch=master" alt="CodeQL Status" /></a></td>
<td><a href="https://coveralls.io/github/openshock/firmware?branch=master"><img src="https://coveralls.io/repos/github/openshock/firmware/badge.svg?branch=master" alt="Coverage Status" /></a></td>
</tr>
<tr>
<td>beta</td>
<td><a href="https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml"><img src="https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml/badge.svg?branch=beta" alt="Build Status" /></a></td>
<td><a href="https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml"><img src="https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml/badge.svg?branch=beta" alt="CodeQL Status" /></a></td>
<td><a href="https://coveralls.io/github/openshock/firmware?branch=master"><img src="https://coveralls.io/repos/github/openshock/firmware/badge.svg?branch=beta" alt="Coverage Status" /></a></td>
</tr>
<tr>
<td>develop</td>
<td><a href="https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml"><img src="https://github.com/OpenShock/Firmware/actions/workflows/ci-build.yml/badge.svg?branch=develop" alt="Build Status" /></a></td>
<td><a href="https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml"><img src="https://github.com/OpenShock/Firmware/actions/workflows/codeql.yml/badge.svg?branch=develop" alt="CodeQL Status" /></a></td>
<td><a href="https://coveralls.io/github/openshock/firmware?branch=master"><img src="https://coveralls.io/repos/github/openshock/firmware/badge.svg?branch=develop" alt="Coverage Status" /></a></td>
</tr>
</table>

Espressif Firmware for OpenShock.

Expand Down
Loading

0 comments on commit 93c3694

Please sign in to comment.