From ac6288301435117bad4103e4b25a9e96790f6cf3 Mon Sep 17 00:00:00 2001 From: lfierz Date: Fri, 10 May 2024 11:21:45 +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 | 36 ------------------- 3 files changed, 23 insertions(+), 36 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 32109bd..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,36 +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 - -TODO_check: - stage: validate - image: - name: registry.gitlab.sensirion.lokal/mso-sw/drivers/docker-driver-generator:0.1.0 - tags: [linux, docker] - script: - - '! grep -rnw --exclude=.gitlab-ci.yml --exclude-dir=.git . -e "TODO: DRIVER_GENERATOR"' From cd1fbcf928b53f90aab7d3b9ae5ce53fcfcaba72 Mon Sep 17 00:00:00 2001 From: lfierz Date: Mon, 13 May 2024 14:56:23 +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: + '["."]'