Skip to content

Add minimal autotools configuration for GitHub Actions workflow compatibility#2

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-9cc981f9-00ba-46e9-b166-bb837ae8a2b0
Draft

Add minimal autotools configuration for GitHub Actions workflow compatibility#2
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-9cc981f9-00ba-46e9-b166-bb837ae8a2b0

Conversation

Copy link
Copy Markdown

Copilot AI commented Jul 29, 2025

Problem

The GitHub Actions C/C++ CI workflow was failing because it expected an autotools-based build system (using autoreconf, configure, make) but the repository only contained CMake configuration files. The workflow was failing at the autoreconf -i step due to the missing configure.ac file.

Solution

Added minimal autotools configuration files to make the existing GitHub Actions workflow pass while preserving the project's CMake-based build system:

Files Added

  1. configure.ac - Minimal autoconf configuration as specified in the issue:

    AC_INIT([kepler-formal], [0.1])
    AM_INIT_AUTOMAKE([foreign])
    AC_PROG_CC
    AC_CONFIG_FILES([Makefile])
    AC_OUTPUT
    
    • Uses foreign mode to avoid requiring standard GNU files (AUTHORS, ChangeLog, NEWS)
    • Includes basic C compiler detection
  2. Makefile.am - Minimal automake template that provides informational output:

    • Contains no actual build rules
    • Displays message indicating this is for CI compatibility only
    • Directs users to use CMake for actual building
  3. .gitignore - Excludes autotools-generated files from version control:

    • Prevents pollution of the repository with generated files
    • Allows developers to run autotools locally without committing artifacts

Testing

Verified that all GitHub Actions workflow steps now complete successfully:

  • autoreconf -i - Generates configure script and supporting files
  • ./configure - Runs configuration checks
  • make - Executes (with informational output)
  • make check - Runs tests (no-op)
  • make distcheck - Creates distribution archive

Impact

  • No impact on existing development workflow - CMake remains the primary build system
  • Fixes CI failures - GitHub Actions workflow can now complete
  • Minimal maintenance overhead - The autotools files are simple and unlikely to need updates
  • Clear documentation - Build output explains the dual build system setup

This is a compatibility layer that allows the CI to pass while the project continues to use CMake for actual development and building.

This pull request was created as a result of the following prompt from Copilot chat.

The GitHub Actions workflow is failing because the required file 'configure.ac' is missing from the repository root. This file is necessary for 'autoreconf' to generate the 'configure' script. To resolve this, add a minimal 'configure.ac' file with the following content:

AC_INIT([kepler-formal], [0.1])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

Place this file in the root of the repository to allow the workflow to proceed past the 'autoreconf' step. Expand the contents if more configuration is needed for your project.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

…kflow

Co-authored-by: nanocoh <115838389+nanocoh@users.noreply.github.com>
Copilot AI changed the title [WIP] Add missing configure.ac file to repository root to fix CI Add minimal autotools configuration for GitHub Actions workflow compatibility Jul 29, 2025
Copilot AI requested a review from nanocoh July 29, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant