CI: Actually working firmware version detection (#365)

* Fix firmware version detection

* Fix ci

* remove release workflow
This commit is contained in:
lucas lelievre
2024-11-16 22:02:30 +01:00
committed by GitHub
parent 608fbd2eb1
commit 9f20c126a2
3 changed files with 19 additions and 40 deletions

View File

@@ -4,6 +4,8 @@ on:
push:
branches:
- main
tags:
- "*"
pull_request:
workflow_dispatch:
create:
@@ -17,15 +19,15 @@ jobs:
with:
clang-format-version: "17"
fallback-style: google
# Disable clang-tidy for now
# - name: Get clang-tidy
# run: |
# apt-get update
# apt-get install -y clang-tidy
# - uses: ZehMatt/clang-tidy-annotations@v1.0.0
# with:
# build_dir: 'build'
# cmake_args: '-G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++'
# Disable clang-tidy for now
# - name: Get clang-tidy
# run: |
# apt-get update
# apt-get install -y clang-tidy
# - uses: ZehMatt/clang-tidy-annotations@v1.0.0
# with:
# build_dir: 'build'
# cmake_args: '-G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++'
build:
runs-on: ubuntu-20.04
@@ -39,6 +41,9 @@ jobs:
~/.platformio/.cache
key: ${{ runner.os }}-pio
- name: Get tags
run: git fetch --tags origin --recurse-submodules=no --force
- name: Set up Python
uses: actions/setup-python@v5
with:

View File

@@ -1,20 +0,0 @@
name: Releases
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
with:
artifacts: "./build/*.bin"
draft: true
token: ${{ secrets.GITHUB_TOKEN }}