diff --git a/.env b/.env new file mode 100644 index 0000000..7daa3ab --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +export GITHUB_REPOSITORY=mp-se/kegmon@master +export GITHUB_TOKEN="$(gh auth token)" +export SECRETS_GITHUB_TOKEN="$(gh auth token)" diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index afc21af..ccdc1c9 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -1,16 +1,17 @@ name: Sphinx Build on: + pull_request: push: branches: - master jobs: - build: + doc-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: ammaraskar/sphinx-action@master with: @@ -41,6 +42,7 @@ jobs: git commit -m "Update documentation" -a || true # The above command will fail if no changes were present, so we ignore # the return code. + - name: Push changes uses: ad-m/github-push-action@master with: diff --git a/.github/workflows/pio-build.yaml b/.github/workflows/pio-build.yaml index 8bd3675..223f875 100644 --- a/.github/workflows/pio-build.yaml +++ b/.github/workflows/pio-build.yaml @@ -1,51 +1,43 @@ name: PlatformIO CI on: + pull_request: push: branches: - dev jobs: - build: + pio-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Cache pip - uses: actions/cache@v2 + - name: Setup PlatformIO + uses: n-vr/setup-platformio-action@v1.0.1 + + #- name: Run PlatformIO + # run: pio run -e kegmon-release -e kegmon32s2-release + + - name: PlatformIO Run + uses: karniv00l/platformio-run-action@v1 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@v2 - - - name: Install PlatformIO - run: | - python -m pip install --upgrade pip - pip install --upgrade platformio - git config --global advice.detachedHead false - - - name: Run PlatformIO - run: pio run -e kegmon-release -e kegmon32s2-release - - - uses: EndBug/add-and-commit@v7 # You can change this to use a specific version. https://github.com/marketplace/actions/add-commit + environments: "kegmon-release,kegmon32s2-release" + #targets: "kegmon-release,kegmon32s2-release" + #project-dir: "./some_dir" + #project-conf: "./some_dir/custom.ini" + jobs: 6 + silent: false + verbose: true + disable-auto-clean: false + + + - uses: EndBug/add-and-commit@v9 # You can change this to use a specific version. https://github.com/marketplace/actions/add-commit + if: ${{ github.event_name != 'pull_request' }} with: add: 'bin' author_name: GitHub Action author_email: mp-se@noreply.github.com - - branch: dev - default_author: github_actor message: 'GitHub Action Build' pathspec_error_handling: ignore diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 9d89c67..11c19c5 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -11,9 +11,10 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 - name: clang format support run: | + sudo apt update sudo apt install clang-format cppcheck - - uses: pre-commit/action@v2.0.3 + - uses: pre-commit/action@v3.0.0 diff --git a/bin/firmware.bin b/bin/firmware.bin index c203e59..abb20cc 100644 Binary files a/bin/firmware.bin and b/bin/firmware.bin differ diff --git a/bin/firmware32s2.bin b/bin/firmware32s2.bin index bbb0b2a..0574c91 100644 Binary files a/bin/firmware32s2.bin and b/bin/firmware32s2.bin differ diff --git a/bin/littlefs.bin b/bin/littlefs.bin new file mode 100644 index 0000000..3cb3899 Binary files /dev/null and b/bin/littlefs.bin differ diff --git a/html/backup.htm b/html/backup.htm index 9c766b3..3ab6326 100644 --- a/html/backup.htm +++ b/html/backup.htm @@ -1,4 +1,4 @@ - +
@@ -16,7 +16,7 @@ - + - - + -