Skip to content

temp: run release CI on branch push #4

temp: run release CI on branch push

temp: run release CI on branch push #4

Workflow file for this run

name: Release build
on:
push:
tags:
- 'v*'
branches:
- releases
env:
GO_VERSION: 1.21.0
jobs:
main:
name: Release build
runs-on: ubuntu-latest
strategy:
matrix:
arch: [
arm64,
amd64,
]
steps:
- name: git checkout
uses: actions/checkout@v4
- name: setup go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: '${{ env.GO_VERSION }}'
- name: get commit hash
- name: build lspd
env:
GOOS: linux
GOARCH: ${{ matrix.arch }}
PKG: github.com/breez/lspd
COMMIT: ${{ github.sha }}
run: |
go get $(PKG)
go build -v -trimpath -o lspd -ldflags "-s -w -X ${PKG}/main.Commit=${COMMIT}" ${PKG}
- name: build cln plugin
env:
GOOS: linux
GOARCH: ${{ matrix.arch }}
PKG: github.com/breez/lspd
COMMIT: ${{ github.sha }}
run: |
go get ${PKG}/cln_plugin/cmd
go build -v -trimpath -o lspd_cln_plugin -ldflags="-s -w -X ${PKG}/main.Commit=${COMMIT}" ${PKG}/cln_plugin/cmd
- name: upload lspd artifact
uses: actions/upload-artifact@v4
with:
name: lspd-linux-${{ matrix.arch }}
path: lspd
- name: upload cln plugin artifact
uses: actions/upload-artifact@v4
with:
name: lspd-cln-plugin-linux-${{ matrix.arch }}
path: lspd_cln_plugin