|
|
|
@ -46,61 +46,61 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
- name: Test |
|
|
|
- name: Test |
|
|
|
run: go test -v $(go list ./... | xargs -n1 sh -c 'ls $0/*_test.go 1>/dev/null 2>&1 && echo $0' | grep .) |
|
|
|
run: go test -v $(go list ./... | xargs -n1 sh -c 'ls $0/*_test.go 1>/dev/null 2>&1 && echo $0' | grep .) |
|
|
|
# release: |
|
|
|
release: |
|
|
|
# needs: build |
|
|
|
needs: build |
|
|
|
# runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
# permissions: |
|
|
|
permissions: |
|
|
|
# contents: write |
|
|
|
contents: write |
|
|
|
# packages: write |
|
|
|
packages: write |
|
|
|
# |
|
|
|
|
|
|
|
# steps: |
|
|
|
steps: |
|
|
|
# - uses: actions/checkout@v4 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
# |
|
|
|
|
|
|
|
# - name: Set up Go |
|
|
|
- name: Set up Go |
|
|
|
# uses: actions/setup-go@v4 |
|
|
|
uses: actions/setup-go@v4 |
|
|
|
# with: |
|
|
|
with: |
|
|
|
# go-version: '1.25' |
|
|
|
go-version: '1.25' |
|
|
|
# |
|
|
|
|
|
|
|
# - name: Install libsecp256k1 |
|
|
|
- name: Install libsecp256k1 |
|
|
|
# run: ./scripts/ubuntu_install_libsecp256k1.sh |
|
|
|
run: ./scripts/ubuntu_install_libsecp256k1.sh |
|
|
|
# |
|
|
|
|
|
|
|
# - name: Build Release Binaries |
|
|
|
- name: Build Release Binaries |
|
|
|
# if: startsWith(github.ref, 'refs/tags/v') |
|
|
|
if: startsWith(github.ref, 'refs/tags/v') |
|
|
|
# run: | |
|
|
|
run: | |
|
|
|
# # Extract version from tag (e.g., v1.2.3 -> 1.2.3) |
|
|
|
# Extract version from tag (e.g., v1.2.3 -> 1.2.3) |
|
|
|
# VERSION=${GITHUB_REF#refs/tags/v} |
|
|
|
VERSION=${GITHUB_REF#refs/tags/v} |
|
|
|
# echo "Building release binaries for version $VERSION" |
|
|
|
echo "Building release binaries for version $VERSION" |
|
|
|
# |
|
|
|
|
|
|
|
# # Create directory for binaries |
|
|
|
# Create directory for binaries |
|
|
|
# mkdir -p release-binaries |
|
|
|
mkdir -p release-binaries |
|
|
|
# |
|
|
|
|
|
|
|
# # Build for different platforms |
|
|
|
# Build for different platforms |
|
|
|
# GOEXPERIMENT=greenteagc,jsonv2 GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o release-binaries/orly-${VERSION}-linux-amd64 . |
|
|
|
GOEXPERIMENT=greenteagc,jsonv2 GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o release-binaries/orly-${VERSION}-linux-amd64 . |
|
|
|
# GOEXPERIMENT=greenteagc,jsonv2 GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o release-binaries/orly-${VERSION}-linux-arm64 . |
|
|
|
GOEXPERIMENT=greenteagc,jsonv2 GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o release-binaries/orly-${VERSION}-linux-arm64 . |
|
|
|
# GOEXPERIMENT=greenteagc,jsonv2 GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o release-binaries/orly-${VERSION}-darwin-amd64 . |
|
|
|
GOEXPERIMENT=greenteagc,jsonv2 GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o release-binaries/orly-${VERSION}-darwin-amd64 . |
|
|
|
# GOEXPERIMENT=greenteagc,jsonv2 GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o release-binaries/orly-${VERSION}-darwin-arm64 . |
|
|
|
GOEXPERIMENT=greenteagc,jsonv2 GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o release-binaries/orly-${VERSION}-darwin-arm64 . |
|
|
|
# GOEXPERIMENT=greenteagc,jsonv2 GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o release-binaries/orly-${VERSION}-windows-amd64.exe . |
|
|
|
GOEXPERIMENT=greenteagc,jsonv2 GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o release-binaries/orly-${VERSION}-windows-amd64.exe . |
|
|
|
# |
|
|
|
|
|
|
|
# # Build cmd executables |
|
|
|
# Build cmd executables |
|
|
|
# for cmd in lerproxy nauth nurl vainstr walletcli; do |
|
|
|
for cmd in lerproxy nauth nurl vainstr walletcli; do |
|
|
|
# echo "Building $cmd" |
|
|
|
echo "Building $cmd" |
|
|
|
# GOEXPERIMENT=greenteagc,jsonv2 GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o release-binaries/${cmd}-${VERSION}-linux-amd64 ./cmd/${cmd} |
|
|
|
GOEXPERIMENT=greenteagc,jsonv2 GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o release-binaries/${cmd}-${VERSION}-linux-amd64 ./cmd/${cmd} |
|
|
|
# GOEXPERIMENT=greenteagc,jsonv2 GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o release-binaries/${cmd}-${VERSION}-linux-arm64 ./cmd/${cmd} |
|
|
|
GOEXPERIMENT=greenteagc,jsonv2 GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o release-binaries/${cmd}-${VERSION}-linux-arm64 ./cmd/${cmd} |
|
|
|
# GOEXPERIMENT=greenteagc,jsonv2 GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o release-binaries/${cmd}-${VERSION}-darwin-amd64 ./cmd/${cmd} |
|
|
|
GOEXPERIMENT=greenteagc,jsonv2 GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o release-binaries/${cmd}-${VERSION}-darwin-amd64 ./cmd/${cmd} |
|
|
|
# GOEXPERIMENT=greenteagc,jsonv2 GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o release-binaries/${cmd}-${VERSION}-darwin-arm64 ./cmd/${cmd} |
|
|
|
GOEXPERIMENT=greenteagc,jsonv2 GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o release-binaries/${cmd}-${VERSION}-darwin-arm64 ./cmd/${cmd} |
|
|
|
# GOEXPERIMENT=greenteagc,jsonv2 GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o release-binaries/${cmd}-${VERSION}-windows-amd64.exe ./cmd/${cmd} |
|
|
|
GOEXPERIMENT=greenteagc,jsonv2 GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o release-binaries/${cmd}-${VERSION}-windows-amd64.exe ./cmd/${cmd} |
|
|
|
# done |
|
|
|
done |
|
|
|
# |
|
|
|
|
|
|
|
# # Create checksums |
|
|
|
# Create checksums |
|
|
|
# cd release-binaries |
|
|
|
cd release-binaries |
|
|
|
# sha256sum * > SHA256SUMS.txt |
|
|
|
sha256sum * > SHA256SUMS.txt |
|
|
|
# cd .. |
|
|
|
cd .. |
|
|
|
# |
|
|
|
|
|
|
|
# - name: Create GitHub Release |
|
|
|
- name: Create GitHub Release |
|
|
|
# if: startsWith(github.ref, 'refs/tags/v') |
|
|
|
if: startsWith(github.ref, 'refs/tags/v') |
|
|
|
# uses: softprops/action-gh-release@v1 |
|
|
|
uses: softprops/action-gh-release@v1 |
|
|
|
# with: |
|
|
|
with: |
|
|
|
# files: release-binaries/* |
|
|
|
files: release-binaries/* |
|
|
|
# draft: false |
|
|
|
draft: false |
|
|
|
# prerelease: false |
|
|
|
prerelease: false |
|
|
|
# generate_release_notes: true |
|
|
|
generate_release_notes: true |
|
|
|
|