-
Notifications
You must be signed in to change notification settings - Fork 0
Add GitHub Actions workflow with Qt build support #3
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
Conversation
Co-authored-by: trett <1980024+trett@users.noreply.github.com>
Co-authored-by: trett <1980024+trett@users.noreply.github.com>
Co-authored-by: trett <1980024+trett@users.noreply.github.com>
Co-authored-by: trett <1980024+trett@users.noreply.github.com>
Co-authored-by: trett <1980024+trett@users.noreply.github.com>
|
@copilot There is the error |
Co-authored-by: trett <1980024+trett@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a comprehensive GitHub Actions CI/CD workflow to automatically build the QRenju Qt application, along with necessary infrastructure updates including build artifact exclusions and modernization of deprecated Qt random number generation APIs.
Key Changes
- GitHub Actions workflow for automated builds using CMake and Qt 5.15.2
- Updated .gitignore to exclude Qt/CMake build artifacts
- Replaced deprecated
qrand()with modernQRandomGeneratorAPI
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/build.yml |
New CI/CD workflow that builds the project on Ubuntu using Qt 5.15.2 and uploads the resulting executable as an artifact |
.gitignore |
Added patterns to exclude CMake build directories and Qt-generated files (object files, moc files, resource files, etc.) |
src/simpleai.cpp |
Modernized random number generation by replacing deprecated qrand() with QRandomGenerator::global()->bounded() and added required header |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 |
Copilot
AI
Jan 4, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider upgrading to actions/checkout@v4 for better performance and the latest features. Version v3 is now over two years old, and v4 has been the recommended version since September 2023. The upgrade is backward compatible and brings improvements in caching and Git LFS support.
| uses: actions/checkout@v3 | |
| uses: actions/checkout@v4 |
GitHub Actions Workflow for Qt Build - Complete ✅
.github/workflowsdirectoryjurplel/install-qt-action@v3Summary
Successfully created a complete GitHub Actions workflow that:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.