Skip to content

Commit

Permalink
new musl-based build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Oct 16, 2022
1 parent adf8e3e commit 98b00be
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,22 @@ jobs:
- make-release
strategy:
matrix:
goos: [linux, freebsd, openbsd]
goarch: [amd64, arm64]
os: [linux, freebsd]
arch: [amd64, arm64]
steps:
- uses: actions/setup-go@v3
with:
go-version: "1.18"
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
- if: matrix.arch == 'amd64'
run: sudo apt update && sudo apt install -y --no-install-recommends musl-tools
- if: matrix.arch == 'amd64'
run: CC=$(which musl-gcc) GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -ldflags='-s -w -linkmode external -extldflags "-static"' -o ./trustedcoin
- if: matrix.arch == 'arm64'
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -ldflags='-s -w' -o ./trustedcoin
- run: tar -czf trustedcoin-${{ matrix.os }}-${{ matrix.arch }}.tar.gz trustedcoin
- uses: AButler/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.18"
overwrite: true
files: trustedcoin-${{ matrix.os }}-${{ matrix.arch }}.tar.gz
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.ref_name }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ apt install lightningd
mkdir -p ~/.lightning/plugins
echo 'disable-plugin=bcli' >> .lightning/config
cd ~/.lightning/plugins
wget https://github.com/nbd-wtf/trustedcoin/releases/download/v0.5.6/trustedcoin-v0.5.6-linux-amd64.tar.gz
tar -xvf trustedcoin-v0.5.6-linux-amd64.tar.gz
wget https://github.com/nbd-wtf/trustedcoin/releases/download/v0.5.7/trustedcoin-linux-amd64.tar.gz
tar -xvf trustedcoin-v0.5.7-linux-amd64.tar.gz
cd
lightningd
```
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func esploras(network string) (ss []string) {
func main() {
p := plugin.Plugin{
Name: "trustedcoin",
Version: "v0.5.6",
Version: "v0.5.7",
Options: []plugin.Option{
{Name: "bitcoin-rpcconnect", Type: "string", Description: "Hostname (IP) to bitcoind RPC (optional).", Default: ""},
{Name: "bitcoin-rpcport", Type: "string", Description: "Port to bitcoind RPC (optional).", Default: ""},
Expand Down

0 comments on commit 98b00be

Please sign in to comment.