Nightly builds #30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Nightly builds | |
| on: | |
| workflow_dispatch: # Allows manual trigger | |
| schedule: | |
| - cron: '0 0 * * *' | |
| # Required for rickstaa/action-create-tag to push the tag and | |
| # softprops/action-gh-release to create/update the GitHub release. | |
| permissions: | |
| contents: write | |
| env: | |
| # Opt into Node.js 24 now — Node.js 20 actions are deprecated and will | |
| # stop working on June 2, 2026 when Node.js 24 becomes the default. | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| nightly: | |
| strategy: | |
| matrix: | |
| go-version: [1.23.x] | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Setup | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: false | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: master | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Build | |
| run: tools/cross-compile.sh nightly | |
| - name: Tag | |
| uses: rickstaa/action-create-tag@v1 | |
| with: | |
| tag: nightly | |
| force_push_tag: true | |
| message: "Pre-release nightly" | |
| - name: Publish | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: nightly | |
| tag_name: nightly | |
| files: binaries/* | |
| prerelease: true | |
| - name: Cleanup | |
| run: rm -rf binaries |