Skip to content

Add make print-boost_build_id #49

Add make print-boost_build_id

Add make print-boost_build_id #49

Workflow file for this run

# Copyright (c) 2023 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
name: Artifacts
on:
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request.
pull_request:
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push.
push:
branches:
- '**'
tags-ignore:
- '**'
concurrency:
group: ${{ github.workflow }}${{ github.event_name != 'pull_request' && github.run_id || github.ref }}
cancel-in-progress: true
jobs:
android:
name: Android
# name: ${{ matrix.host.name }}
runs-on: ubuntu-latest
container: ubuntu:22.04
# strategy:
# fail-fast: false
# matrix:
# host:
# - name: 'macOS arm64'
# packages: ''
# triplet: 'arm64-apple-darwin'
# compiler: 'clang'
# configure_options: ''
# gui_exe: 'bitcoin-qt'
# artifact: 'unsecure_macos_apple_silicon_gui'
# - name: 'macOS x86_64'
# packages: ''
# triplet: 'x86_64-apple-darwin'
# compiler: 'clang'
# configure_options: ''
# gui_exe: 'bitcoin-qt'
# artifact: 'unsecure_macos_intel_gui'
# - name: 'Windows'
# packages: 'g++-mingw-w64-x86-64-posix'
# triplet: 'x86_64-w64-mingw32'
# compiler: 'x86_64-w64-mingw32-g++-posix'
# configure_options: 'CXXFLAGS=-Wno-return-type'
# gui_exe: 'bitcoin-qt.exe'
# artifact: 'unsecure_windows_gui'
env:
ANDROID_HOME: '/tmp/Android'
ANDROID_API_LEVEL: '28'
ANDROID_BUILD_TOOLS_VERSION: '28.0.3'
ANDROID_NDK_VERSION: '23.2.8568313'
ANDROID_TOOLS_URL: 'https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip'
CCACHE_MAXSIZE: '50M'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependency packages
run: |
apt-get update
apt-get install --no-install-recommends -y autoconf automake ca-certificates ccache curl g++ lbzip2 libtool make openjdk-8-jdk patch pkg-config python3 tree unzip xz-utils
echo "CCACHE_DIR=/tmp/ccache" >> "$GITHUB_ENV"
- name: Install Android tools
run: |
curl --location --fail ${{ env.ANDROID_TOOLS_URL }} -o android-tools.zip
mkdir -p ${{ env.ANDROID_HOME }}
unzip -o android-tools.zip -d ${{ env.ANDROID_HOME }}
yes | ${{ env.ANDROID_HOME }}/cmdline-tools/bin/sdkmanager --sdk_root=${{ env.ANDROID_HOME }} --install "build-tools;${{ env.ANDROID_BUILD_TOOLS_VERSION }}" "platform-tools" "platforms;android-31" "platforms;android-${{ env.ANDROID_API_LEVEL }}" "ndk;${{ env.ANDROID_NDK_VERSION }}"
- name: Depends fingerprint
id: depends_fingerprint
run: |
echo ${{ env.ANDROID_NDK_VERSION }} > depends/android-ndk-version
echo "hash=${{ hashFiles('./depends/**') }}" >> "$GITHUB_OUTPUT"
- name: Depends cache
id: depends_cache
uses: actions/cache@v3
with:
path: |
depends/built
# key: ${{ matrix.host.triplet }}-depends-${{ steps.depends_fingerprint.outputs.hash }}
key: android-depends-${{ steps.depends_fingerprint.outputs.hash }}
- name: Build depends
run: |
cd depends
make print-build_id
make print-boost_all_file_checksums
make print-boost_recipe_hash
make print-boost_build_id_long
make print-boost_build_id
tree built/aarch64-linux-android || true
make -j$(nproc) HOST=aarch64-linux-android ANDROID_SDK=${{ env.ANDROID_HOME }} ANDROID_NDK=${{ env.ANDROID_HOME }}/ndk/${{ env.ANDROID_NDK_VERSION }} ANDROID_API_LEVEL=${{ env.ANDROID_API_LEVEL }} ANDROID_TOOLCHAIN_BIN=${{ env.ANDROID_HOME }}/ndk/${{ env.ANDROID_NDK_VERSION }}/toolchains/llvm/prebuilt/linux-x86_64/bin NO_QT=1
tree built/aarch64-linux-android
make print-boost_build_id