temp: run release CI on branch push #2
Workflow file for this run
This file contains 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: 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@v2 | |
with: | |
fetch-depth: 0 | |
- name: setup go ${{ env.GO_VERSION }} | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '${{ env.GO_VERSION }}' | |
- name: build lspd | |
env: | |
GOOS: linux | |
GOARCH: ${{ matrix.arch }} | |
run: | | |
go get . | |
go build -v -trimpath . | |
- name: build cln plugin | |
env: | |
GOOS: linux | |
GOARCH: ${{ matrix.arch }} | |
run: | | |
go get ./cln_plugin/cmd | |
go build -v -trimpath -o lspd_cln_plugin ./cln_plugin/cmd | |
- name: upload lspd artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lspd-linux-${{ matrix.arch }} | |
path: lspd | |
- name: upload cln plugin artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lspd-cln-plugin-linux-${{ matrix.arch }} | |
path: lspd_cln_plugin | |