Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate Linux Binary Publishing for Corpora CLI using GitHub Actions #33

Open
skyl opened this issue Nov 12, 2024 · 1 comment
Open

Comments

@skyl
Copy link
Owner

skyl commented Nov 12, 2024

Objective

Set up an automated workflow to build and publish a Linux binary for the corpora CLI located at py/packages/corpora_cli/main.py for each new commit to the main branch using GitHub Actions.

Goals

  1. Leverage PyInstaller to create a Linux binary automatically.
  2. Trigger the build process on every commit to the main branch and publish the resultant binary.

Context

  • The CLI is configurable through the environment variables, defaulting to localhost.
  • The focus is solely on Linux binary creation for now; cross-platform binaries are not within the current scope.

Proposed Steps

  1. GitHub Actions Setup:

    • Develop a workflow that executes on each commit to main.
    • Use PyInstaller to build the Linux binary.
    • Implement steps to upload the created binary as an artifact.
  2. Artifact Publishing:

    • Ensure the workflow publishes the binary as a GitHub Actions artifact for straightforward access.

This task will enable automated packaging and distribution of the CLI, simplifying installation for Linux users.

@skyl
Copy link
Owner Author

skyl commented Nov 12, 2024

Actually, get this. You can just clone corpora and run it locally with a devcontainer and download a fresh linux build via the dev server #38

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

No branches or pull requests

1 participant