2024-12-21 22:55:27 +01:00
|
|
|
name: build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- '**/*.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
- 'contrib/**'
|
|
|
|
- '**/*.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: ${{ matrix.name }}
|
|
|
|
|
|
|
|
env:
|
|
|
|
MAKEJOBS: 4
|
|
|
|
SDK_URL: https://bitcoincore.org/depends-sources/sdks
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
name:
|
|
|
|
- linux-32-bit
|
|
|
|
- linux-64-bit
|
|
|
|
- linux-arm-32-bit
|
|
|
|
- linux-arm-64-bit
|
|
|
|
include:
|
|
|
|
- name: linux-32-bit
|
|
|
|
host: i686-pc-linux-gnu
|
|
|
|
os: ubuntu-20.04
|
|
|
|
packages: g++-multilib
|
|
|
|
check-security: false
|
|
|
|
check-symbols: false
|
|
|
|
dep-opts: ""
|
|
|
|
config-opts: "--enable-glibc-back-compat LDFLAGS=-static-libstdc++"
|
|
|
|
goal: install
|
|
|
|
|
|
|
|
- name: linux-64-bit
|
|
|
|
host: x86_64-pc-linux-gnu
|
|
|
|
os: ubuntu-20.04
|
|
|
|
packages: python3
|
|
|
|
check-security: false
|
|
|
|
check-symbols: false
|
|
|
|
dep-opts: ""
|
|
|
|
config-opts: "--enable-sse2 --enable-glibc-back-compat LDFLAGS=-static-libstdc++"
|
|
|
|
goal: install
|
|
|
|
|
|
|
|
- name: linux-arm-32-bit
|
|
|
|
host: arm-linux-gnueabihf
|
|
|
|
os: ubuntu-20.04
|
|
|
|
packages: g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
|
|
|
|
check-security: false
|
|
|
|
check-symbols: false
|
|
|
|
dep-opts: ""
|
|
|
|
config-opts: "--enable-glibc-back-compat LDFLAGS=-static-libstdc++"
|
|
|
|
goal: install
|
|
|
|
|
|
|
|
- name: linux-arm-64-bit
|
|
|
|
host: aarch64-linux-gnu
|
|
|
|
os: ubuntu-20.04
|
|
|
|
packages: g++-aarch64-linux-gnu binutils-aarch64-linux-gnu
|
|
|
|
check-security: false
|
|
|
|
check-symbols: false
|
|
|
|
dep-opts: ""
|
|
|
|
config-opts: "--enable-glibc-back-compat LDFLAGS=-static-libstdc++"
|
|
|
|
goal: install
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
2024-12-21 23:04:58 +01:00
|
|
|
steps:
|
|
|
|
- name: Add architecture
|
2024-12-21 23:08:46 +01:00
|
|
|
if: ${{ matrix.arch }}
|
|
|
|
run: |
|
|
|
|
sudo dpkg --add-architecture "${{ matrix.arch }}"
|
|
|
|
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
|
|
|
sudo apt-get update -qq
|
|
|
|
sudo apt-get remove -qq libmono* moby* mono* nginx* php* libgdiplus libpcre2-posix3 libzip4
|
2024-12-21 23:04:58 +01:00
|
|
|
|
|
|
|
- name: Install packages
|
2024-12-21 23:08:46 +01:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install make automake cmake curl g++-multilib libtool binutils-gold bsdmainutils pkg-config python3 patch bison
|
|
|
|
sudo apt-get install ${{ matrix.packages }}
|
2024-12-21 23:04:58 +01:00
|
|
|
|
|
|
|
- name: Post Install
|
2024-12-21 23:08:46 +01:00
|
|
|
if: ${{ matrix.postinstall }}
|
|
|
|
run: ${{ matrix.postinstall }}
|
2024-12-21 23:04:58 +01:00
|
|
|
|
|
|
|
- name: Checkout
|
2024-12-21 23:08:46 +01:00
|
|
|
uses: actions/checkout@v4.1.7
|
2024-12-21 23:04:58 +01:00
|
|
|
|
|
|
|
- name: SDK cache
|
|
|
|
|
|
|
|
- name: Install SDK
|
|
|
|
|
|
|
|
- name: Dependency cache
|
|
|
|
|
|
|
|
- name: Build depends
|
|
|
|
|
|
|
|
- name: Check security
|
|
|
|
|
|
|
|
- name: Check symbols
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
|
|
|
|
- name: Download artifacts
|