2024-06-09 13:20:47 +03:00
|
|
|
name: Nightly builds
|
|
|
|
on:
|
2024-06-17 11:36:38 +03:00
|
|
|
workflow_dispatch: # Allows manual trigger
|
2024-06-09 13:20:47 +03:00
|
|
|
schedule:
|
2024-06-17 11:36:38 +03:00
|
|
|
- cron: '0 0 * * *'
|
2024-06-09 13:20:47 +03:00
|
|
|
jobs:
|
|
|
|
nightly:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
go-version: [1.19.x]
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- name: Setup
|
|
|
|
uses: actions/setup-go@v5
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
2024-06-17 12:03:49 +03:00
|
|
|
cache: false
|
2024-06-09 13:20:47 +03:00
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
ref: master
|
2024-06-19 23:03:14 +03:00
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: true
|
2024-06-09 13:20:47 +03:00
|
|
|
|
|
|
|
- name: Build
|
2024-08-06 00:25:15 +03:00
|
|
|
run: tools/cross-compile.sh nightly
|
2024-06-09 13:20:47 +03:00
|
|
|
|
|
|
|
- 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
|