Skip to content

Commit

Permalink
Create release build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Jan 26, 2024
1 parent 600ca84 commit c85f16a
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Release build

on:
push:
tags:
- 'v*'

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: go get
env:
GOOS: linux
GOARCH: ${{ matrix.arch }}
run: go get .

- 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 -o lspd_cln_plugin ./cln_plugin/cmd -v -trimpath
- 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

0 comments on commit c85f16a

Please sign in to comment.