forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: cirrus run linux_aarch64 first (numpy#24435)
[skip ci]
- Loading branch information
Showing
2 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -55,3 +111,5 @@ macos_arm64_test_task: | |
spin build -- -Dallow-noblas=true | ||
spin test -j auto | ||
ccache -s |