From af123135dea0ac17f7102a06f6a0283d5c9914c9 Mon Sep 17 00:00:00 2001 From: Lukas Woodtli Date: Thu, 30 Jan 2025 16:22:20 +0100 Subject: [PATCH] DONT MERGE disable other GH actions --- .github/workflows/build.yaml | 65 ------------------------- .github/workflows/build_and_test.yaml | 65 ------------------------- .github/workflows/codechecker.yaml | 53 -------------------- .github/workflows/codeql-analysis.yml | 40 --------------- .github/workflows/compliance.yaml | 41 ---------------- .github/workflows/coverage.yaml | 36 -------------- .github/workflows/documentation.yaml | 31 ------------ .github/workflows/integration_test.yaml | 54 -------------------- .github/workflows/macos.yaml | 34 ------------- .github/workflows/scorecard.yml | 61 ----------------------- .github/workflows/sonarcloud-scan.yaml | 51 ------------------- 11 files changed, 531 deletions(-) delete mode 100644 .github/workflows/build.yaml delete mode 100644 .github/workflows/build_and_test.yaml delete mode 100644 .github/workflows/codechecker.yaml delete mode 100644 .github/workflows/codeql-analysis.yml delete mode 100644 .github/workflows/compliance.yaml delete mode 100644 .github/workflows/coverage.yaml delete mode 100644 .github/workflows/documentation.yaml delete mode 100644 .github/workflows/integration_test.yaml delete mode 100644 .github/workflows/macos.yaml delete mode 100644 .github/workflows/scorecard.yml delete mode 100644 .github/workflows/sonarcloud-scan.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 35059dbb..00000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,65 +0,0 @@ -name: Compilation only checks - -on: [push, pull_request] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - standards: - runs-on: ubuntu-24.04 - - strategy: - matrix: - compiler: ["clang-18", "gcc-13"] - c_standard: ["99", "11"] - c_extensions: ["ON", "OFF"] - - steps: - - name: Checkout code including full history and submodules - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - submodules: true - fetch-depth: 0 - - - name: Install dependencies from APT repository - run: | - sudo apt-get update - sudo apt-get install cmake libcunit1-dev ninja-build unzip wget - - - name: Build all binaries - run: | - tools/ci/run_ci.sh \ - --run-build \ - --c-standard ${{ matrix.c_standard }} \ - --c-extensions ${{ matrix.c_extensions }} - env: - CC: ${{ matrix.compiler }} - - standalone-examples: - runs-on: ubuntu-24.04 - - strategy: - matrix: - example: ["bootstrap_server", "client/udp", "client/tinydtls", "client/raw_block1", "lightclient", "server"] - - steps: - - name: Checkout code including full history and submodules - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - submodules: true - fetch-depth: 0 - - - name: Install dependencies from APT repository - run: | - sudo apt-get update - sudo apt-get install cmake libcunit1-dev ninja-build unzip wget - - - name: Build examples as stand-alone projects - run: | - tools/ci/run_ci.sh \ - --run-clean \ - --run-build \ - --source-directory examples/${{ matrix.example }} \ - --build-directory wakaama-build-${{ matrix.example }} diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml deleted file mode 100644 index 5fe3e8c5..00000000 --- a/.github/workflows/build_and_test.yaml +++ /dev/null @@ -1,65 +0,0 @@ -name: Build and Test - -on: - push: - branches: '**' - pull_request: - branches: '**' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build_and_test: - runs-on: ubuntu-24.04 - - strategy: - matrix: - sanitizer: ["address", "leak", "thread", "undefined"] - compiler: ["clang-18", "gcc-13"] - example: ["bootstrap_server", "client/udp", "client/tinydtls", "client/raw_block1", "lightclient", "server"] - - steps: - - name: Checkout code including full history and submodules - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - submodules: true - fetch-depth: 0 - - - name: Install dependencies from APT repository - run: | - sudo apt-get update - sudo apt-get install cmake libcunit1-dev ninja-build - - - name: Build Wakaama - run: | - tools/ci/run_ci.sh --run-build --sanitizer ${{ matrix.sanitizer }} --verbose - env: - CC: ${{ matrix.compiler }} - - - name: Build, execute sanitized unit tests - run: | - tools/ci/run_ci.sh --run-tests - env: - CC: ${{ matrix.compiler }} - - - name: Build and test examples - run: | - tools/ci/run_ci.sh \ - --run-clean \ - --run-build \ - --sanitizer ${{ matrix.sanitizer }} \ - --source-directory examples/${{ matrix.example }} \ - --build-directory wakaama-build-${{ matrix.example }} - env: - CC: ${{ matrix.compiler }} - - - name: Unit test examples - run: | - tools/ci/run_ci.sh \ - --run-tests \ - --source-directory examples/${{ matrix.example }} \ - --build-directory wakaama-build-${{ matrix.example }} - env: - CC: ${{ matrix.compiler }} diff --git a/.github/workflows/codechecker.yaml b/.github/workflows/codechecker.yaml deleted file mode 100644 index 68cf332b..00000000 --- a/.github/workflows/codechecker.yaml +++ /dev/null @@ -1,53 +0,0 @@ -name: CodeChecker - -on: [push, pull_request] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - codechecker_static_analyzer: - runs-on: ubuntu-24.04 - - steps: - - name: Checkout code including full history and submodules - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - submodules: true - fetch-depth: 0 - - - name: Install CodeChecker - run: | - sudo apt-get update - sudo apt-get install clang-tools-18 cmake cppcheck libcunit1-dev ninja-build - pip install --require-hashes -r tools/requirements-codechecker.txt - - - name: Run CodeChecker - run: | - tools/ci/run_ci.sh --run-build --run-code-checker --code-checker diff - env: - CC: clang-18 - - - name: Upload CodeChecker reports - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - with: - name: CodeChecker Reports - path: build-wakaama/code_checker_report/ - if-no-files-found: error - if: failure() - - - name: Create baseline for Upload - run: | - bash -x tools/ci/run_ci.sh --run-build --run-code-checker --code-checker baseline - env: - CC: clang-18 - if: failure() - - - name: Upload CodeChecker baseline (for debugging) - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - with: - name: CodeChecker Baseline - path: tools/code_checker/reports.baseline - if-no-files-found: error - if: failure() diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index f9ec062c..00000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: '**' - pull_request: - branches: [main] - schedule: - - cron: '20 14 * * 1' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - codeql: - runs-on: ubuntu-24.04 - - steps: - - name: Checkout code including full history and submodules - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - submodules: true - fetch-depth: 0 - - - name: Install dependencies from APT repository - run: | - sudo apt-get update - sudo apt-get install cmake libcunit1-dev ninja-build unzip wget - - - name: Initialize CodeQL - uses: github/codeql-action/init@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4 - with: - languages: cpp - - - name: Build all binaries - run: tools/ci/run_ci.sh --run-build - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4 diff --git a/.github/workflows/compliance.yaml b/.github/workflows/compliance.yaml deleted file mode 100644 index 6be5c543..00000000 --- a/.github/workflows/compliance.yaml +++ /dev/null @@ -1,41 +0,0 @@ -name: Compliance - -on: pull_request - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - lint-code: - name: Run compliance checks - runs-on: ubuntu-24.04 - - steps: - - name: Checkout code including full history - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - fetch-depth: 0 - - - name: Install compliance tools - run: | - sudo apt update - sudo apt -qy --no-install-recommends install clang-format-14 - pip3 install --require-hashes -r tools/requirements-compliance.txt - - - name: Check commits with gitlint - run: | - tools/ci/run_ci.sh --branch-target origin/${{ github.base_ref }} --run-gitlint - - - name: Check C code (delta) with clang-format - run: | - tools/ci/run_ci.sh --branch-target origin/${{ github.base_ref }} --run-clang-format - - - name: Check CMakeLists.txt files with cmake-lint - run: | - tools/ci/run_ci.sh --run-cmake-format - - - name: Check Python code with pylint - run: | - cd tests - pylint integration diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml deleted file mode 100644 index 87aabcc4..00000000 --- a/.github/workflows/coverage.yaml +++ /dev/null @@ -1,36 +0,0 @@ -name: Measure coverage - -on: [push, pull_request] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - coverage: - runs-on: ubuntu-24.04 - - steps: - - name: Checkout code including full history and submodules - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - submodules: true - fetch-depth: 0 - - - name: Install dependencies from APT repository - run: | - sudo apt-get update - sudo apt-get install cmake gcovr libcunit1-dev ninja-build unzip wget - - - name: Collect test coverage data - run: | - tools/ci/run_ci.sh \ - --run-build \ - --run-tests \ - --test-coverage html - - - name: Upload HTML coverage report - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - with: - name: Coverage Report (HTML) - path: build-wakaama/coverage diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml deleted file mode 100644 index fe1fc064..00000000 --- a/.github/workflows/documentation.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: Build Documentation - -on: - pull_request: - branches: [main] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - documentation: - runs-on: ubuntu-24.04 - - steps: - - name: Checkout code including full history and submodules - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Install dependencies from APT repository - run: | - sudo apt-get update - sudo apt-get install doxygen graphviz plantuml - - - name: Build Doxygen documentation - run: tools/ci/run_ci.sh --run-doxygen - - - name: Upload Doxygen documentation - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - with: - name: Doxygen documentation (HTML) - path: build-wakaama/doxygen diff --git a/.github/workflows/integration_test.yaml b/.github/workflows/integration_test.yaml deleted file mode 100644 index 0caf9517..00000000 --- a/.github/workflows/integration_test.yaml +++ /dev/null @@ -1,54 +0,0 @@ -name: Integration Tests - -on: - push: - branches: '**' - pull_request: - branches: '**' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build_and_test: - runs-on: ubuntu-24.04 - - strategy: - matrix: - sanitizer: ["address", "leak", "thread", "undefined"] - - steps: - - name: Checkout code including full history and submodules - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - submodules: true - fetch-depth: 0 - - - name: Install dependencies from APT repository - run: | - sudo apt-get update - sudo apt-get install cmake libcunit1-dev ninja-build - - - name: Build examples for integration tests - run: | - for example in "server" "bootstrap_server" "client/udp" - do - echo "Building example ${example}" - tools/ci/run_ci.sh \ - --run-clean \ - --run-build \ - --sanitizer ${{ matrix.sanitizer }} \ - --run-tests \ - --source-directory examples/${example} \ - --build-directory build-wakaama-${example} - done - - - name: Install Python test dependencies - run: | - pip install --require-hashes -r tests/integration/requirements.txt - - - name: Execute integration tests - run: | - python -c "import sys; print(sys.version)" - pytest -v tests/integration diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml deleted file mode 100644 index 8e978889..00000000 --- a/.github/workflows/macos.yaml +++ /dev/null @@ -1,34 +0,0 @@ -name: Build and Test on macOS - -on: - push: - branches: '**' - pull_request: - branches: '**' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build_and_test: - runs-on: macos-14 - - steps: - - name: Checkout code including full history and submodules - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - submodules: true - fetch-depth: 0 - - - name: Install dependencies from Homebrew - run: | - brew install automake cmake cunit gnu-getopt make ninja - - - name: Build all binaries - run: | - tools/ci/run_ci.sh --run-build --verbose - - - name: Build, execute unit tests - run: | - tools/ci/run_ci.sh --run-tests diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml deleted file mode 100644 index b7c1c42b..00000000 --- a/.github/workflows/scorecard.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Scorecard supply-chain security -on: - # For Branch-Protection check. Only the default branch is supported. See - # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection - branch_protection_rule: - # To guarantee Maintained check is occasionally updated. See - # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained - schedule: - - cron: '30 4 * * 0' - push: - branches: - - main - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: read-all - -jobs: - analysis: - name: Scorecard analysis - runs-on: ubuntu-latest - permissions: - # Needed to upload the results to code-scanning dashboard. - security-events: write - # Needed to publish results and get a badge (see publish_results below). - id-token: write - - steps: - - name: "Checkout code" - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - with: - persist-credentials: false - - - name: "Run analysis" - uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1 - with: - results_file: results.sarif - results_format: sarif - # - Publish results to OpenSSF REST API for easy access by consumers - # - Allows the repository to include the Scorecard badge. - # - See https://github.com/ossf/scorecard-action#publishing-results. - publish_results: true - - # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF - # format to the repository Actions tab. - - name: "Upload artifact" - uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20 - with: - name: SARIF file - path: results.sarif - retention-days: 5 - - # Upload the results to GitHub's code scanning dashboard (optional). - # Commenting out will disable upload of results to your repo's Code Scanning dashboard - - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4 - with: - sarif_file: results.sarif - diff --git a/.github/workflows/sonarcloud-scan.yaml b/.github/workflows/sonarcloud-scan.yaml deleted file mode 100644 index 5948897e..00000000 --- a/.github/workflows/sonarcloud-scan.yaml +++ /dev/null @@ -1,51 +0,0 @@ -name: SonarCloud Scan - -on: [push] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - sonarcloud: - runs-on: ubuntu-24.04 - - steps: - - name: Checkout code including full history and submodules - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - submodules: true - fetch-depth: 0 - - - name: Install dependencies from APT repository - run: | - sudo apt-get update - sudo apt-get install cmake gcovr libcunit1-dev ninja-build unzip wget - - - name: Install sonar-scanner and build-wrapper - uses: sonarsource/sonarcloud-github-c-cpp@e4882e1621ad2fb48dddfa48287411bed34789b1 # v2.0.2 - - - name: Collect test coverage data - run: | - tools/ci/run_ci.sh \ - --run-build \ - --run-tests \ - --sonarqube build-wrapper-linux-x86-64 - - - name: Run SonarCloud Scan - run: | - sonar-scanner \ - -Dsonar.branch.name="${GITHUB_REF_NAME}" \ - -Dsonar.cfamily.build-wrapper-output=build-wakaama/sonar-cloud-build-wrapper-output \ - -Dsonar.cfamily.cache.enabled=false \ - -Dsonar.cfamily.gcov.reportsPath=build-wakaama \ - -Dsonar.cfamily.threads=2 \ - -Dsonar.exclusions="build-wakaama-*/**, .git/**" \ - -Dsonar.host.url=https://sonarcloud.io \ - -Dsonar.login=${{ secrets.SONAR_TOKEN }} \ - -Dsonar.organization="eclipse" \ - -Dsonar.projectKey="eclipse_wakaama" \ - -Dsonar.sourceEncoding=UTF-8 \ - -Dsonar.sources=. - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}