From 29756e31bea235bc9a60f6fd892f5860d3867bbd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:04:59 +0000 Subject: [PATCH 1/2] Initial plan From 37138f791f805cc261c967c9f86079344903cb35 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:07:49 +0000 Subject: [PATCH 2/2] ci: make C/C++ workflow generate configure via Autotools when needed Co-authored-by: FuzzysTodd <157565446+FuzzysTodd@users.noreply.github.com> --- .github/workflows/c-cpp.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 6a9c312e61..3d63b7438f 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -13,8 +13,30 @@ jobs: steps: - uses: actions/checkout@v4 - - name: configure - run: ./configure + - name: Prepare build (Autotools) + run: | + set -e + if [ -f configure ]; then + echo "Running ./configure" + chmod +x configure + ./configure + elif [ -f autogen.sh ]; then + echo "Running ./autogen.sh" + chmod +x autogen.sh + ./autogen.sh + elif [ -f configure.ac ] || [ -f configure.in ]; then + echo "Running autoreconf -i" + sudo apt-get update + sudo apt-get install -y autoconf automake libtool pkg-config build-essential + autoreconf -i + chmod +x configure + ./configure + else + echo "No Autotools entrypoint found (configure, autogen.sh, or configure.ac)." >&2 + echo "Repository root listing:"; + ls -la + exit 1 + fi - name: make run: make - name: make check