From 6fcbbe681268f59766f305d6b75dd9808b3915e8 Mon Sep 17 00:00:00 2001 From: Souptik De Date: Sun, 22 Feb 2026 10:50:23 +0530 Subject: [PATCH 1/7] Add GitHub Actions workflow for build and test --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..42c68c9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build and Test + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + +jobs: + build-linux-run-tests: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + - name: show Ubuntu version + run: cat /etc/os-release | grep PRETTY_NAME | awk -F '=' '{print $2}' + - name: update build environment + run: sudo apt-get update --fix-missing -y + - name: install prerequisites + run: | + sudo apt-get install autoconf autopoint libglib2.0-dev libdbus-1-dev libtool -y + - name: configure + env: + CC: /usr/bin/gcc + run: ./autogen.sh && ./configure + - name: make + run: make + - name: Run Tests + run: make check || cat test/error_log* From 5241b6941fd6064d1963a99c5d1c2b0019182339 Mon Sep 17 00:00:00 2001 From: Souptik De Date: Mon, 23 Feb 2026 21:59:35 +0530 Subject: [PATCH 2/7] Add CodeQL analysis workflow This workflow runs CodeQL analysis on pushes and pull requests to the master branch, and it is scheduled to run weekly. --- .github/workflows/codeql.yml | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..05232b1 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,51 @@ +name: "CodeQL" + +on: + push: + branches: [master] + pull_request: + branches: [master] + schedule: + - cron: '0 7 * * 6' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: ['cpp'] + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + submodules: recursive + + - name: Update build environment + run: sudo apt-get update --fix-missing -y + + - name: Install prerequisite + run: | + sudo apt-get install autoconf autopoint libglib2.0-dev libdbus-1-dev libtool -y + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + # config-file: ./.github/codeql.yml + queries: +security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v4 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{ matrix.language }}" From 7e48b8bdba4ccf0abb76ad354123bd74bdaf8e7f Mon Sep 17 00:00:00 2001 From: Souptik De Date: Sat, 7 Mar 2026 20:07:12 +0530 Subject: [PATCH 3/7] Add workflow_dispatch event to build.yml --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 42c68c9..9016ed6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,8 @@ on: pull_request: branches: - '**' - + workflow_dispatch: + jobs: build-linux-run-tests: From b9193f5bb7d470d322f293a57f6b2b1c6d5d44fe Mon Sep 17 00:00:00 2001 From: Souptik De Date: Sat, 7 Mar 2026 20:07:44 +0530 Subject: [PATCH 4/7] Add workflow_dispatch trigger to CodeQL workflow --- .github/workflows/codeql.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 05232b1..6c83a7a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -7,7 +7,8 @@ on: branches: [master] schedule: - cron: '0 7 * * 6' - + workflow_dispatch: + jobs: analyze: name: Analyze From e0c89266d338eafa5cde5d93c65bf49ce872a37e Mon Sep 17 00:00:00 2001 From: Souptik De Date: Sat, 7 Mar 2026 20:21:07 +0530 Subject: [PATCH 5/7] Change CodeQL language from C++ to C --- .github/workflows/codeql.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6c83a7a..8cba13a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - language: ['cpp'] + language: ['c'] steps: - name: Checkout repository @@ -40,7 +40,6 @@ jobs: uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} - # config-file: ./.github/codeql.yml queries: +security-and-quality - name: Autobuild From 4fabfd96b5872824d8fdc55225c76a3a37c0b384 Mon Sep 17 00:00:00 2001 From: Souptik De Date: Mon, 16 Mar 2026 22:30:51 +0530 Subject: [PATCH 6/7] Fix installation command formatting in build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9016ed6..64ab42b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: run: sudo apt-get update --fix-missing -y - name: install prerequisites run: | - sudo apt-get install autoconf autopoint libglib2.0-dev libdbus-1-dev libtool -y + sudo apt-get install -y autoconf autopoint libglib2.0-dev libdbus-1-dev libtool - name: configure env: CC: /usr/bin/gcc From 0c28254a8d0374fd21d898a481cfc0345edddbfe Mon Sep 17 00:00:00 2001 From: Souptik De Date: Mon, 16 Mar 2026 22:31:53 +0530 Subject: [PATCH 7/7] Fix installation command for prerequisites in codeql.yml --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8cba13a..4f2093e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -34,7 +34,7 @@ jobs: - name: Install prerequisite run: | - sudo apt-get install autoconf autopoint libglib2.0-dev libdbus-1-dev libtool -y + sudo apt-get install -y autoconf autopoint libglib2.0-dev libdbus-1-dev libtool - name: Initialize CodeQL uses: github/codeql-action/init@v4