|
| 1 | +# Copyright (c) 2023 The Bitcoin Core developers |
| 2 | +# Distributed under the MIT software license, see the accompanying |
| 3 | +# file COPYING or http://www.opensource.org/licenses/mit-license.php. |
| 4 | + |
| 5 | +name: bitcoin-core-ci |
| 6 | +run-name: Bitcoin Core CI |
| 7 | +# See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore. |
| 8 | +on: [pull_request, push] |
| 9 | + |
| 10 | +env: |
| 11 | + DANGER_RUN_CI_ON_HOST: 1 |
| 12 | + TEST_RUNNER_TIMEOUT_FACTOR: 40 |
| 13 | + |
| 14 | +jobs: |
| 15 | + macos-native-x86_64: |
| 16 | + name: macOS 13 native, x86_64 [no depends, sqlite only, gui] |
| 17 | + # Use latest image, but hardcode version to avoid silent upgrades (and breaks). |
| 18 | + # See: https://github.com/actions/runner-images#available-images. |
| 19 | + runs-on: macos-13 |
| 20 | + |
| 21 | + # No need to run on the read-only mirror, unless it is a PR. |
| 22 | + if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request' |
| 23 | + |
| 24 | + env: |
| 25 | + MAKEJOBS: '-j4' |
| 26 | + CI_USE_APT_INSTALL: 'no' |
| 27 | + PACKAGE_MANAGER_INSTALL: 'echo' # Nothing to do |
| 28 | + FILE_ENV: './ci/test/00_setup_env_mac_native.sh' |
| 29 | + |
| 30 | + steps: |
| 31 | + - name: Checkout |
| 32 | + uses: actions/checkout@v3 |
| 33 | + |
| 34 | + - name: Clang version |
| 35 | + run: clang --version |
| 36 | + |
| 37 | + - name: Install Homebrew packages |
| 38 | + run: brew install automake boost pkg-config miniupnpc libnatpmp zeromq qt@5 qrencode ccache gnu-getopt |
| 39 | + |
| 40 | + - name: Set Ccache directory |
| 41 | + run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV" |
| 42 | + |
| 43 | + - name: Ccache cache |
| 44 | + uses: actions/cache@v3 |
| 45 | + with: |
| 46 | + path: ${{ env.CCACHE_DIR }} |
| 47 | + key: ${{ github.job }}-ccache-cache-${{ github.run_id }} |
| 48 | + restore-keys: ${{ github.job }}-ccache-cache |
| 49 | + |
| 50 | + - name: CI script |
| 51 | + run: ./ci/test_run_all.sh |
0 commit comments