From 18dad182fcee5cc4c92ceef600e36fe86e3898b9 Mon Sep 17 00:00:00 2001 From: lfierz Date: Fri, 10 May 2024 11:22:41 +0200 Subject: [PATCH 1/2] create default driver github workflow --- .github/workflows/github_release.yml | 10 +++++++ .github/workflows/raspberry_quality_check.yml | 13 +++++++++ .gitlab-ci.yml | 28 ------------------- 3 files changed, 23 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/github_release.yml create mode 100644 .github/workflows/raspberry_quality_check.yml delete mode 100644 .gitlab-ci.yml diff --git a/.github/workflows/github_release.yml b/.github/workflows/github_release.yml new file mode 100644 index 0000000..d98ee0e --- /dev/null +++ b/.github/workflows/github_release.yml @@ -0,0 +1,10 @@ +name: Github Release + +on: + push: + tags: + - '*' + +jobs: + github-release: + uses: sensirion/.github/.github/workflows/driver.common.github_release.yml@main diff --git a/.github/workflows/raspberry_quality_check.yml b/.github/workflows/raspberry_quality_check.yml new file mode 100644 index 0000000..681a73d --- /dev/null +++ b/.github/workflows/raspberry_quality_check.yml @@ -0,0 +1,13 @@ +name: Quality check + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + driver-quality: + uses: sensirion/.github/.github/workflows/driver.c.check.yml@main diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 3bb65a2..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,28 +0,0 @@ -stages: - - validate - - build - -syntax_check: - stage: validate - image: - name: registry.gitlab.sensirion.lokal/mso-sw/drivers/docker-driver-generator:0.1.0 - tags: [linux, docker] - script: - - find . -type f -iregex ".*\.\(c\|h\|cpp\|ino\)" -exec clang-format-6.0 -i -style=file {} \; && git diff --exit-code - - -cppcheck: - stage: validate - image: - name: registry.gitlab.sensirion.lokal/mso-sw/drivers/docker-driver-generator:0.1.0 - tags: [linux, docker] - script: - - cppcheck --std=c89 --language=c --error-exitcode=1 --enable=warning,style,performance,portability -i sample-implementations/ . - -build: - stage: build - image: - name: sensirion/embedded-ci:2.3.0 - tags: [linux, docker] - script: - - make From 18199e758d4a0c41fb7d75d39d94bbf7da3bffde Mon Sep 17 00:00:00 2001 From: lfierz Date: Mon, 13 May 2024 14:56:45 +0200 Subject: [PATCH 2/2] update example location in gh workflow --- .github/workflows/raspberry_quality_check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/raspberry_quality_check.yml b/.github/workflows/raspberry_quality_check.yml index 681a73d..7e7f4a8 100644 --- a/.github/workflows/raspberry_quality_check.yml +++ b/.github/workflows/raspberry_quality_check.yml @@ -11,3 +11,5 @@ on: jobs: driver-quality: uses: sensirion/.github/.github/workflows/driver.c.check.yml@main + with: + '["."]'