Add release ci (#11)

* add release binary builder
This commit is contained in:
T.v.Dein
2025-01-18 10:32:01 +01:00
committed by GitHub
parent 9afca91159
commit e054d1e530
2 changed files with 31 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ jobs:
build:
strategy:
matrix:
version: [1.21]
version: [1.21,'1.22']
os: [ubuntu-latest, macos-latest]
name: Build
runs-on: ${{ matrix.os }}

30
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: build-and-test
on:
push:
tags:
- "*"
jobs:
release:
name: Build Release Assets
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.22.11
- name: Display the version of go that we have installed
run: go version
- name: Display the release tag
run: echo ${{ github.event.release.tag_name }}
- name: Build the executables
run: ./mkrel.sh anydb ${{ github.event.release.tag_name }}
- name: List the executables
run: ls -l ./releases