From 916de33762aa72e9d9e4665ba23a1e610c585570 Mon Sep 17 00:00:00 2001 From: Nazir Bilal Yavuz Date: Mon, 26 Sep 2022 10:56:51 +0300 Subject: [PATCH 1/2] ci: Add arm CPU for darwin . ci-os-only: darwin. --- .cirrus.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 7b5cb02102..cecd978515 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -259,7 +259,6 @@ task: name: macOS - Monterey - Meson env: - CPUS: 12 # always get that much for cirrusci macOS instances BUILD_JOBS: $CPUS TEST_JOBS: $CPUS # already fast enough to not be worth tuning @@ -275,15 +274,26 @@ task: only_if: $CIRRUS_CHANGE_MESSAGE !=~ '.*\nci-os-only:.*' || $CIRRUS_CHANGE_MESSAGE =~ '.*\nci-os-only:[^\n]*(macos|darwin|osx).*' - osx_instance: - image: monterey-base + matrix: + - name: macOS - Monterey - Meson - ARM CPU + macos_instance: + image: ghcr.io/cirruslabs/macos-monterey-base:latest + env: + BREW_PATH: /opt/homebrew + CPUS: 4 + + - name: macOS - Monterey - Meson - Intel CPU + osx_instance: + image: monterey-base + env: + BREW_PATH: /usr/local + CPUS: 12 # always get that much for cirrusci macOS instances sysinfo_script: | id uname -a ulimit -a -H && ulimit -a -S export - setup_core_files_script: - mkdir ${HOME}/cores - sudo sysctl kern.corefile="${HOME}/cores/core.%P" @@ -322,7 +332,7 @@ task: ccache_cache: folder: $CCACHE_DIR configure_script: | - brewpath="/usr/local" + brewpath=${BREW_PATH} PKG_CONFIG_PATH="${brewpath}/lib/pkgconfig:${PKG_CONFIG_PATH}" for pkg in icu4c krb5 openldap openssl zstd ; do -- 2.25.1