mirror of
https://github.com/johndoe6345789/GithubWorkflowTool.git
synced 2026-04-25 14:15:25 +00:00
2.4 KiB
2.4 KiB
Building GithubWorkflowTool
Prerequisites
Required Dependencies
- CMake 3.22 or higher
- Ninja build system
- Conan 2.x package manager
- Qt 6.6.1 or higher
- C++17 compatible compiler (GCC 9+, Clang 10+, MSVC 2019+)
- Git
Optional Dependencies
- Docker or Podman (for container backend)
- QEMU (for VM backend)
Installing Dependencies
Ubuntu/Debian
sudo apt update
sudo apt install cmake ninja-build python3-pip git
pip3 install conan
Windows
- Install CMake from https://cmake.org/download/
- Install Ninja from https://github.com/ninja-build/ninja/releases
- Install Python and pip: https://www.python.org/downloads/
- Install Conan:
pip install conan - Install Git: https://git-scm.com/download/win
Building the Project
- Clone the repository:
git clone https://github.com/johndoe6345789/GithubWorkflowTool.git
cd GithubWorkflowTool
- Configure Conan (first time only):
conan profile detect --force
- Install dependencies:
conan install . --output-folder=build --build=missing
- Configure the project:
cmake --preset=default
- Build:
cmake --build build
Running the Application
CLI
./build/gwt --help
GUI
./build/gwt-gui
Usage Examples
Clone a repository
./build/gwt clone https://github.com/user/repo
List cloned repositories
./build/gwt list
Discover workflows
./build/gwt workflows /path/to/cloned/repo
Run a workflow
./build/gwt run /path/to/cloned/repo /path/to/cloned/repo/.github/workflows/ci.yml
Run with QEMU backend
./build/gwt run /path/to/cloned/repo /path/to/cloned/repo/.github/workflows/ci.yml --qemu
Development
Debug Build
conan install . --output-folder=build-debug --build=missing -s build_type=Debug
cmake --preset=debug
cmake --build build-debug
Clean Build
rm -rf build build-debug
Troubleshooting
Qt not found
Make sure Qt 6 is properly installed and Conan can find it:
conan search qt --remote=conancenter
yaml-cpp not found
Install yaml-cpp through Conan:
conan install yaml-cpp/0.8.0@
Build errors
Try cleaning and rebuilding:
rm -rf build
conan install . --output-folder=build --build=missing
cmake --preset=default
cmake --build build