This guide will walk you through setting up automated Windows executable builds using GitHub Actions.
- A GitHub account
- Your code pushed to a GitHub repository
If you haven't already, push your code to GitHub:
# If this is a new repo
git init
git add .
git commit -m "Initial commit with WORM Settings feature"
git branch -M main
git remote add origin https://github.com/YOUR_USERNAME/ctools.git
git push -u origin main
# If you already have a repo
git add .
git commit -m "Add WORM Settings and GitHub Actions workflow"
git pushOnce you push to GitHub:
- Go to your repository on GitHub
- Click the "Actions" tab at the top
- You'll see your workflow running
- Wait for it to complete (usually 3-5 minutes)
After the workflow completes successfully:
- In the Actions tab, click on the latest workflow run
- Scroll down to the "Artifacts" section
- Click on "ctools-windows-exe" to download
- Extract the zip file to get
ctools.exe
You can also trigger a build manually:
- Go to Actions tab
- Click "Build Windows Executable" in the left sidebar
- Click "Run workflow" button on the right
- Select the branch and click "Run workflow"
If the build fails, click on the failed workflow run to see error logs:
- Red X means it failed
- Click on the job name to see detailed logs
- Common issues:
- Missing dependencies in requirements.txt
- Python syntax errors
- Missing files
If you see errors about missing icon.jpeg or logo.png:
- Make sure these files are committed to your repo
- Update the workflow file to remove the
--iconflag if you don't have an icon
If you need to debug:
- Click on the failed/completed workflow
- Click on the job name
- Each step shows detailed output
- You can download the full log using the "..." menu
To create a tagged release with the executable:
# Create and push a tag
git tag -a v3.2.2 -m "Release version 3.2.2 with WORM Settings"
git push origin v3.2.2This will:
- Trigger the workflow
- Build the executable
- Automatically create a GitHub Release with the .exe attached
- Free for public repositories
- 2,000 minutes/month free for private repositories
- Windows builds use 2x minutes (3 min build = 6 mins consumed)
- You can build ~333 times per month on the free tier
After your first successful build:
- Download the .exe
- Test it on a Windows machine
- If it works, you're done!
- Future builds happen automatically on every push