mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
![fanquake](/assets/img/avatar_default.png)
fa8e89d5e4
ci: Remove distro-name from task name (MarcoFalke)fad006fa0a
ci: Switch remaining tasks to self-hosted (MarcoFalke) Pull request description: Cirrus CI will be capping the free compute soon. For now, switch more tasks to persistent worker, as recommended by Cirrus CI. (See slightly related discussion in https://github.com/bitcoin/bitcoin/issues/28098) ACKs for top commit: pinheadmz: concept ACKfa8e89d5e4
dergoegge: ACKfa8e89d5e4
hebasto: ACKfa8e89d5e4
. Tree-SHA512: f6b172fee14856021b7a219b2490c8a163ad0137567c34a383080c68f8319b1d846923e508a968f43fb63ed6ce536dcb0611905fa288271f2267764b07bf9ecb
70 lines
2.4 KiB
YAML
70 lines
2.4 KiB
YAML
# 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: CI
|
|
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.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
env:
|
|
DANGER_RUN_CI_ON_HOST: 1
|
|
CI_FAILFAST_TEST_LEAVE_DANGLING: 1 # GHA does not care about dangling processes and setting this variable avoids killing the CI script itself on error
|
|
MAKEJOBS: '-j10'
|
|
|
|
jobs:
|
|
macos-native-x86_64:
|
|
name: 'macOS 13 native, x86_64, no depends, sqlite only, gui'
|
|
# Use latest image, but hardcode version to avoid silent upgrades (and breaks).
|
|
# See: https://github.com/actions/runner-images#available-images.
|
|
runs-on: macos-13 # Use M1 once available https://github.com/github/roadmap/issues/528
|
|
|
|
# No need to run on the read-only mirror, unless it is a PR.
|
|
if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request'
|
|
|
|
timeout-minutes: 120
|
|
|
|
env:
|
|
FILE_ENV: './ci/test/00_setup_env_mac_native.sh'
|
|
BASE_ROOT_DIR: ${{ github.workspace }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Clang version
|
|
run: clang --version
|
|
|
|
- name: Install Homebrew packages
|
|
run: brew install boost libevent qt@5 miniupnpc libnatpmp ccache zeromq qrencode libtool automake gnu-getopt
|
|
|
|
- name: Set Ccache directory
|
|
run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
|
|
|
|
- name: Restore Ccache cache
|
|
uses: actions/cache/restore@v3
|
|
with:
|
|
path: ${{ env.CCACHE_DIR }}
|
|
key: ${{ github.job }}-ccache-${{ github.run_id }}
|
|
restore-keys: ${{ github.job }}-ccache-
|
|
|
|
- name: CI script
|
|
run: ./ci/test_run_all.sh
|
|
|
|
- name: Save Ccache cache
|
|
uses: actions/cache/save@v3
|
|
if: github.event_name != 'pull_request'
|
|
with:
|
|
path: ${{ env.CCACHE_DIR }}
|
|
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
|
|
key: ${{ github.job }}-ccache-${{ github.run_id }}
|