|
| 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: CI |
| 6 | +on: |
| 7 | + # See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request. |
| 8 | + pull_request: |
| 9 | + # See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push. |
| 10 | + push: |
| 11 | + branches: |
| 12 | + - '**' |
| 13 | + tags-ignore: |
| 14 | + - '**' |
| 15 | + |
| 16 | +env: |
| 17 | + DANGER_RUN_CI_ON_HOST: 1 |
| 18 | + TEST_RUNNER_TIMEOUT_FACTOR: 40 |
| 19 | + |
| 20 | +jobs: |
| 21 | + macos-native-x86_64: |
| 22 | + name: macOS 13 native, x86_64 [no depends, sqlite only, gui] |
| 23 | + # Use latest image, but hardcode version to avoid silent upgrades (and breaks). |
| 24 | + # See: https://github.com/actions/runner-images#available-images. |
| 25 | + runs-on: macos-13 |
| 26 | + |
| 27 | + # No need to run on the read-only mirror, unless it is a PR. |
| 28 | + if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request' |
| 29 | + |
| 30 | + timeout-minutes: 120 |
| 31 | + |
| 32 | + env: |
| 33 | + MAKEJOBS: '-j4' |
| 34 | + CI_USE_APT_INSTALL: 'no' |
| 35 | + PACKAGE_MANAGER_INSTALL: 'echo' # Nothing to do |
| 36 | + FILE_ENV: './ci/test/00_setup_env_mac_native.sh' |
| 37 | + |
| 38 | + steps: |
| 39 | + - name: Checkout |
| 40 | + uses: actions/checkout@v3 |
| 41 | + |
| 42 | + - name: Clang version |
| 43 | + run: clang --version |
| 44 | + |
| 45 | + - name: Install Homebrew packages |
| 46 | + run: brew install boost libevent qt@5 miniupnpc libnatpmp ccache zeromq qrencode libtool automake gnu-getopt |
| 47 | + |
| 48 | + - name: Set Ccache directory |
| 49 | + run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV" |
| 50 | + |
| 51 | + - name: Ccache cache |
| 52 | + uses: actions/cache@v3 |
| 53 | + with: |
| 54 | + path: ${{ env.CCACHE_DIR }} |
| 55 | + key: ${{ github.job }}-ccache-cache-${{ github.run_id }} |
| 56 | + restore-keys: ${{ github.job }}-ccache-cache |
| 57 | + |
| 58 | + - name: CI script |
| 59 | + run: ./ci/test_run_all.sh |
0 commit comments