-
Notifications
You must be signed in to change notification settings - Fork 56
76 lines (67 loc) · 2.69 KB
/
Copy pathartifacts.yml
File metadata and controls
76 lines (67 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# 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 qt@6 qrencode coreutils llvm
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 \
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
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