Skip to content

qml: adapt core settings to updated Core APIs #551

qml: adapt core settings to updated Core APIs

qml: adapt core settings to updated Core APIs #551

Workflow file for this run

# Copyright (c) 2025 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:
- '**'
jobs:
build:
runs-on: ${{matrix.os}}
env:
BUILD_APP_TESTS: ON
strategy:
fail-fast: false
matrix:
os: [macos-15, ubuntu-24.04]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: MacOS Install Deps
if: contains(matrix.os, 'macos')
run: |
brew install ccache boost pkgconf libevent qt@6 qrencode coreutils llvm
if [ "${BUILD_APP_TESTS}" = "ON" ]; then
brew install googletest
fi
llvm_prefix="$(brew --prefix llvm)"
echo "CC=${llvm_prefix}/bin/clang" >> "$GITHUB_ENV"
echo "CXX=${llvm_prefix}/bin/clang++" >> "$GITHUB_ENV"
echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> "$GITHUB_ENV"
echo "CCACHE_DIR=${{ runner.temp }}/ccache" >> "$GITHUB_ENV"
- name: Ubuntu Install Deps
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update && sudo apt-get install -y \
build-essential ccache cmake pkgconf \
libevent-dev libboost-dev libsqlite3-dev libgl-dev libqrencode-dev \
qt6-base-dev qt6-tools-dev qt6-l10n-tools qt6-tools-dev-tools \
qt6-declarative-dev qml6-module-qt-labs-settings qml6-module-qtquick qml6-module-qtquick-controls qml6-module-qtquick-dialogs qml6-module-qtquick-layouts qml6-module-qtquick-templates qml6-module-qtqml
if [ "${BUILD_APP_TESTS}" = "ON" ]; then
sudo apt-get install -y libgtest-dev libgmock-dev
fi
echo "CCACHE_DIR=${{ runner.temp }}/ccache" >> "$GITHUB_ENV"
- name: Restore Ccache cache
uses: actions/cache/restore@v4
id: ccache-cache
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ matrix.os }}-ccache-${{ github.run_id }}
restore-keys: ${{ matrix.os }}-ccache-
- name: Build
run: |
git submodule update --init
cmake -B build \
-DBUILD_APP_TESTS=${{ env.BUILD_APP_TESTS }} \
-DENABLE_IPC=OFF
cmake --build build -j$(nproc)
- name: Save Ccache cache
uses: actions/cache/save@v4
if: github.event_name != 'pull_request' && steps.ccache-cache.outputs.cache-hit != 'true'
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ matrix.os }}-ccache-${{ github.run_id }}
- uses: actions/upload-artifact@v4
with:
name: unsecure_${{ matrix.os }}_gui
path: build/bin/bitcoin-core-app