-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (59 loc) · 2.2 KB
/
artifacts.yml
File metadata and controls
69 lines (59 loc) · 2.2 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
# 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}}
strategy:
fail-fast: false
matrix:
os: [macos-14, ubuntu-22.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
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-qtquick 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
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