Merge pull request #9347 from lightningnetwork/cross-compile-fix
build/ci: attempt to fix failing cross compile step
This commit is contained in:
3 files changed
+34
-2
No files matched your search
@@ -7,6 +7,12 @@ inputs:
|
|||||||
key-prefix:
|
key-prefix:
|
||||||
description: "A prefix to use for the cache key, to separate cache entries from other workflows"
|
description: "A prefix to use for the cache key, to separate cache entries from other workflows"
|
||||||
required: false
|
required: false
|
||||||
|
use-build-cache:
|
||||||
|
description: "Whether to use the build cache"
|
||||||
|
required: false
|
||||||
|
# Boolean values aren't supported in the workflow syntax, so we use a
|
||||||
|
# string. To not confuse the value with true/false, we use 'yes' and 'no'.
|
||||||
|
default: 'yes'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@@ -17,7 +23,8 @@ runs:
|
|||||||
with:
|
with:
|
||||||
go-version: '${{ inputs.go-version }}'
|
go-version: '${{ inputs.go-version }}'
|
||||||
|
|
||||||
- name: go cache
|
- name: go module and build cache
|
||||||
|
if: ${{ inputs.use-build-cache == 'yes' }}
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
# In order:
|
# In order:
|
||||||
@@ -35,6 +42,18 @@ runs:
|
|||||||
${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-${{ github.job }}-
|
${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-${{ github.job }}-
|
||||||
${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-
|
${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-
|
||||||
|
|
||||||
|
- name: go module cache
|
||||||
|
if: ${{ inputs.use-build-cache == 'no' }}
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
# Just the module download cache.
|
||||||
|
path: |
|
||||||
|
~/go/pkg/mod
|
||||||
|
key: ${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-no-build-cache-${{ github.job }}-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-no-build-cache-${{ github.job }}-
|
||||||
|
${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-no-build-cache-
|
||||||
|
|
||||||
- name: set GOPATH
|
- name: set GOPATH
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -139,6 +139,17 @@ jobs:
|
|||||||
cross-compile:
|
cross-compile:
|
||||||
name: cross compilation
|
name: cross compilation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
|
matrix:
|
||||||
|
# Please keep this list in sync with make/release_flags.mk!
|
||||||
|
include:
|
||||||
|
- name: i386
|
||||||
|
sys: freebsd-386 linux-386 windows-386
|
||||||
|
- name: amd64
|
||||||
|
sys: darwin-amd64 freebsd-amd64 linux-amd64 netbsd-amd64 openbsd-amd64 windows-amd64
|
||||||
|
- name: arm
|
||||||
|
sys: darwin-arm64 freebsd-arm linux-armv6 linux-armv7 linux-arm64 windows-arm
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -148,9 +159,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: '${{ env.GO_VERSION }}'
|
go-version: '${{ env.GO_VERSION }}'
|
||||||
key-prefix: cross-compile
|
key-prefix: cross-compile
|
||||||
|
use-build-cache: 'no'
|
||||||
|
|
||||||
- name: build release for all architectures
|
- name: build release for all architectures
|
||||||
run: make release
|
run: make release sys="${{ matrix.sys }}"
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# sample configuration check
|
# sample configuration check
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ DOCKER_RELEASE_HELPER = docker run \
|
|||||||
-e SKIP_VERSION_CHECK \
|
-e SKIP_VERSION_CHECK \
|
||||||
lnd-release-helper
|
lnd-release-helper
|
||||||
|
|
||||||
|
# Please keep this list in sync with .github/workflows/main.yml!
|
||||||
BUILD_SYSTEM = darwin-amd64 \
|
BUILD_SYSTEM = darwin-amd64 \
|
||||||
darwin-arm64 \
|
darwin-arm64 \
|
||||||
freebsd-386 \
|
freebsd-386 \
|
||||||
|
|||||||
Reference in new issue
Block a user