Skip to content

Commit

Permalink
CI: cirrus run linux_aarch64 first (numpy#24435)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
andyfaff authored Aug 18, 2023
1 parent 044c74b commit 2ce972e
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .cirrus.star
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ def main(ctx):
if int(pr_number) < 0:
return []

return fs.read("tools/ci/cirrus_macosx_arm64.yml")
return fs.read("tools/ci/cirrus_arm.yml")
60 changes: 59 additions & 1 deletion tools/ci/cirrus_macosx_arm64.yml → tools/ci/cirrus_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,75 @@ modified_clone: &MODIFIED_CLONE
fi
linux_aarch64_test_task:
compute_engine_instance:
image_project: cirrus-images
image: family/docker-builder-arm64
architecture: arm64
platform: linux
cpu: 1
memory: 4G

<<: *MODIFIED_CLONE

ccache_cache:
folder: .ccache
populate_script:
- mkdir -p .ccache
fingerprint_key: ccache-linux_aarch64

prepare_env_script: |
apt-get update
apt-get install -y --no-install-recommends software-properties-common gcc g++ gfortran pkg-config ccache
apt-get install -y --no-install-recommends python3.10 python3.10-venv libopenblas-dev libatlas-base-dev liblapack-dev
# python3.10 -m ensurepip --default-pip --user
ln -s $(which python3.10) python
# put ccache and python on PATH
export PATH=/usr/lib/ccache:$PWD:$PATH
echo "PATH=$PATH" >> $CIRRUS_ENV
echo "CCACHE_DIR=$PWD/.ccache" >> $CIRRUS_ENV
# required for figuring out the system tags in openblas_support
pip install packaging
pip install -r build_requirements.txt
pip install -r test_requirements.txt
build_script: |
spin build -- -Dallow-noblas=true
test_script: |
spin test -j 1
ccache -s
macos_arm64_test_task:
depends_on:
- linux_aarch64_test
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:14

<<: *MODIFIED_CLONE

ccache_cache:
folder: .ccache
populate_script:
- mkdir -p .ccache
fingerprint_key: ccache-macosx_arm64

pip_cache:
folder: ~/.cache/pip

test_script: |
brew install [email protected]
brew install [email protected] ccache
export PATH=/opt/homebrew/opt/[email protected]/libexec/bin:$PATH
export PATH=/opt/homebrew/opt/ccache/libexec:$PATH
export CCACHE_DIR=$PWD/.ccache
echo "PATH=$PATH" >> $CIRRUS_ENV
python --version
RUNNER_OS="macOS"
Expand All @@ -55,3 +111,5 @@ macos_arm64_test_task:
spin build -- -Dallow-noblas=true
spin test -j auto
ccache -s

0 comments on commit 2ce972e

Please sign in to comment.