Skip to content

Create ci that bundles python script into a single executable #1

Draft
Project516 wants to merge 2 commits intoflybotix:mainfrom
Project516:ci
Draft

Create ci that bundles python script into a single executable #1
Project516 wants to merge 2 commits intoflybotix:mainfrom
Project516:ci

Conversation

@Project516
Copy link
Copy Markdown

I am drafting it because I want your feedback on the additions.

This creates a workflow that builds the python scripts into a single executable. This is helpful, so pip, python, and venv can be time consuming to setup, so with this change one can just run the binary in the terminal, without the overhead of python and the project dependencies. It should function the same.

below is a summary of the workflow created

This pull request introduces a new GitHub Actions workflow for building and releasing binaries for multiple operating systems. The workflow automates building the project with PyInstaller for Linux, macOS, and Windows, and uploads the resulting binaries as artifacts. On tagged pushes, it creates a GitHub Release and attaches the built binaries.

CI/CD automation:

  • Added .github/workflows/build.yml to automate building release binaries for Linux, macOS, and Windows using a matrix strategy and PyInstaller.
  • Configured the workflow to trigger on tag pushes (matching v*) and manual dispatch, ensuring releases are only created for version tags or when manually triggered.
  • Implemented artifact upload and download steps to manage binary files across build and release jobs.
  • Integrated the softprops/action-gh-release action to automatically create a GitHub Release and attach the built binaries for all platforms.

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