Skip to content

ci: Run "macOS native x86_64" job on GitHub Actions #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,20 +334,3 @@ task:
env:
MACOS_SDK: "Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
<< : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV

task:
name: 'macOS 13 native arm64 [gui, sqlite only] [no depends]'
macos_instance:
# Use latest image, but hardcode version to avoid silent upgrades (and breaks)
image: ghcr.io/cirruslabs/macos-ventura-xcode:14.3.1 # https://cirrus-ci.org/guide/macOS
<< : *BASE_TEMPLATE
check_clang_script:
- clang --version
brew_install_script:
- brew install boost libevent qt@5 miniupnpc libnatpmp ccache zeromq qrencode libtool automake gnu-getopt
<< : *MAIN_TEMPLATE
env:
<< : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
CI_USE_APT_INSTALL: "no"
PACKAGE_MANAGER_INSTALL: "echo" # Nothing to do
FILE_ENV: "./ci/test/00_setup_env_mac_native_arm64.sh"
66 changes: 66 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# 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: bitcoin-core-ci
run-name: Bitcoin Core CI
# See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore.
on: [pull_request, push]

env:
DANGER_RUN_CI_ON_HOST: 1
TEST_RUNNER_TIMEOUT_FACTOR: 40

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

env:
MAKEJOBS: '-j4'
# CI_CCACHE_PATH: '${{ vars.RUNNER_TEMP }}/ccache_dir'
CI_USE_APT_INSTALL: 'no'
PACKAGE_MANAGER_INSTALL: 'echo' # Nothing to do
FILE_ENV: './ci/test/00_setup_env_mac_native.sh'
# CCACHE_DIR: '${{ vars.RUNNER_TEMP }}/ccache_dir'

steps:
- run: echo "CCACHE_DIR=$RUNNER_TEMP/ccache_dir" >> "$GITHUB_ENV"


# - run: echo $RUNNER_TEMP
- run: echo $CCACHE_DIR
- run: echo '${{ env.CCACHE_DIR }}'
# - run: echo '${{ vars.RUNNER_TEMP }}'

- run: echo '${{ github.event }}'
- run: echo '${{ github.event_name }}'



# - run: echo '${{ env.CI_CCACHE_PATH }}'
# - run: echo '${{ github.workspace }}'

# - run: cat '${{ github.env }}'


# - name: Checkout
# uses: actions/checkout@v3

# - name: Clang version
# run: clang --version

# - name: Install Homebrew packages
# run: brew install automake boost pkg-config miniupnpc libnatpmp zeromq qt@5 qrencode ccache gnu-getopt

# - name: Ccache cache
# uses: actions/cache@v3
# with:
# path: ${{ env.CCACHE_DIR }}
# key: ${{ github.job }}-ccache-cache-${{ github.run_id }}
# restore-keys: ${{ github.job }}-ccache-cache

# - name: CI script
# run: ./ci/test_run_all.sh
19 changes: 19 additions & 0 deletions ci/test/00_setup_env_mac_native.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
#
# 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.

export LC_ALL=C.UTF-8

export HOST=x86_64-apple-darwin
export PIP_PACKAGES="zmq"
export GOAL="install"
export BITCOIN_CONFIG="--without-gui --with-miniupnpc --with-natpmp --enable-reduce-exports"
export CI_OS_NAME="macos"
export NO_DEPENDS=1
export OSX_SDK=""
export CCACHE_SIZE=400M

export RUN_UNIT_TESTS=false
export RUN_FUNCTIONAL_TESTS=false
18 changes: 0 additions & 18 deletions ci/test/00_setup_env_mac_native_arm64.sh

This file was deleted.