Skip to content

Commit

Permalink
Merge pull request #378 from lightninglabs/cross-compile
Browse files Browse the repository at this point in the history
Fix multiple small issues with release, prepare for 0.2.2-alpha
  • Loading branch information
jharveyb authored Jun 23, 2023
2 parents fff9c33 + 9746bd3 commit 257ad39
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 15 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ env:
GOPATH: /home/runner/work/go
GO111MODULE: on

# If you change this value, please change it in the following files as well:
# /Dockerfile
# /dev.Dockerfile
# /make/builder.Dockerfile
# /taprpc/Dockerfile
# /tools/Dockerfile
GO_VERSION: '1.20.5'

jobs:
Expand Down Expand Up @@ -77,6 +83,22 @@ jobs:
- name: compile code
run: go install -v ./...

########################
# cross compilation
########################
cross-compile:
name: cross compilation
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3

- name: setup go ${{ env.GO_VERSION }}
uses: ./.github/actions/setup-go

- name: build release for all architectures
run: make release

########################
# Lint check.
########################
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# If you change this value, please change it in the following files as well:
# /.travis.yml
# /.github/workflows/main.yaml
# /dev.Dockerfile
# /make/builder.Dockerfile
# /.github/workflows/main.yml
# /.github/workflows/release.yml
# /taprpc/Dockerfile
# /tools/Dockerfile
FROM golang:1.20.5-alpine as builder

# Force Go to use the cgo based DNS resolver. This is required to ensure DNS
Expand Down
7 changes: 6 additions & 1 deletion dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# IMAGE FOR BUILDING
# If you change this value, please change it in the following files as well:
# /.github/workflows/main.yaml
# /Dockerfile
# /make/builder.Dockerfile
# /taprpc/Dockerfile
# /tools/Dockerfile
FROM golang:1.20.5 as builder

WORKDIR /app
Expand Down
7 changes: 4 additions & 3 deletions proof/aperture.go → itest/aperture_harness.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proof
package itest

import (
"crypto/tls"
Expand All @@ -11,6 +11,7 @@ import (
"time"

"github.com/lightninglabs/aperture"
"github.com/lightninglabs/taproot-assets/proof"
"github.com/lightningnetwork/lnd/lntest/wait"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -121,5 +122,5 @@ func (h *ApertureHarness) Stop() error {
return h.Service.Stop()
}

// Ensure that ApertureHarness implements the CourierHarness interface.
var _ CourierHarness = (*ApertureHarness)(nil)
// Ensure that ApertureHarness implements the proof.CourierHarness interface.
var _ proof.CourierHarness = (*ApertureHarness)(nil)
2 changes: 1 addition & 1 deletion itest/tapd_harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func newTapdHarness(ht *harnessTest, cfg tapdConfig,

// Populate proof courier specific config fields.
switch typedProofCourier := (proofCourier).(type) {
case *proof.ApertureHarness:
case *ApertureHarness:
// Use passed in backoff config or default config.
backoffCfg := &proof.BackoffCfg{
BackoffResetWait: 20 * time.Second,
Expand Down
2 changes: 1 addition & 1 deletion itest/test_harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func setupHarnesses(t *testing.T, ht *harnessTest,

case proof.ApertureCourier:
port := nextAvailablePort()
apHarness := proof.NewApertureHarness(ht.t, port)
apHarness := NewApertureHarness(ht.t, port)
proofCourier = &apHarness
}

Expand Down
6 changes: 3 additions & 3 deletions make/builder.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# If you change this value, please change it in the following files as well:
# /.travis.yml
# /.github/workflows/main.yaml
# /Dockerfile
# /dev.Dockerfile
# /.github/workflows/main.yml
# /.github/workflows/release.yml
# /taprpc/Dockerfile
# /tools/Dockerfile
FROM golang:1.20.5-buster

MAINTAINER Olaoluwa Osuntokun <[email protected]>
Expand Down
8 changes: 7 additions & 1 deletion taprpc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
FROM golang:1.20.4-buster
# If you change this value, please change it in the following files as well:
# /.github/workflows/main.yaml
# /Dockerfile
# /dev.Dockerfile
# /make/builder.Dockerfile
# /tools/Dockerfile
FROM golang:1.20.5-buster

RUN apt-get update && apt-get install -y \
git \
Expand Down
8 changes: 7 additions & 1 deletion tools/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
FROM golang:1.20.4-buster
# If you change this value, please change it in the following files as well:
# /.github/workflows/main.yaml
# /Dockerfile
# /dev.Dockerfile
# /make/builder.Dockerfile
# /taprpc/Dockerfile
FROM golang:1.20.5-buster

RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const (
AppMinor uint = 2

// AppPatch defines the application patch for this binary.
AppPatch uint = 1
AppPatch uint = 2

// AppPreRelease MUST only contain characters from semanticAlphabet
// per the semantic versioning spec.
Expand Down

0 comments on commit 257ad39

Please sign in to comment.