Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3fe1d4776
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| on: | ||
| push: | ||
| branches: [main, master] |
There was a problem hiding this comment.
Trigger nightly workflow on a schedule
The workflow is named and used as a nightly build, but it only runs on push to main/master; if no commits land on a day, no build or release is produced for that night. This causes the nightly artifact stream to go stale precisely in the no-commit periods where a scheduled nightly run is expected, so the trigger should include on.schedule (and optionally keep push as a separate trigger).
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions workflow intended to produce “nightly” Go binaries and publish them as a GitHub prerelease.
Changes:
- Introduces
.github/workflows/nightly.ymlto rungo vet,go test, and cross-compile binaries for multiple OS/arch targets. - Packages artifacts into
.tar.gzfiles and publishes them to anightlyGitHub release viagh.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| push: | ||
| branches: [main, master] |
|
|
||
| - uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: "1.25" |
| - name: Delete previous nightly release | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: gh release delete nightly --yes --cleanup-tag || true | ||
|
|
||
| - name: Create nightly release | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| gh release create nightly dist/*.tar.gz \ | ||
| --title "Nightly ($(date -u +%Y-%m-%d))" \ | ||
| --notes "Автоматическая сборка из \`${GITHUB_SHA::7}\` ($(date -u +%Y-%m-%d %H:%M UTC))" \ | ||
| --prerelease |
No description provided.