Skip to content

Commit

Permalink
CI: Add arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jun 6, 2024
1 parent 3b86444 commit 08883bd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cirrus_wheels_macos_arm64_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
env:
GH_TOKEN: ENCRYPTED[5cef4d5798a06ef1d2681e25b0e79f83dd63a64375c6ee9c66845cdd067c31d22d93e9656a9eec0def2c5da2e755466b]
build_script:
./build.sh
upload_script:
- ls -l
- curl -X POST --data-binary @otconda-1.23-MacOSX-arm64.sh --header "Authorization: token $GH_TOKEN" --header "Content-Type: application/octet-stream" https://uploads.github.com/repos/$CIRRUS_REPO_FULL_NAME/releases/$CIRRUS_RELEASE/assets?name=otconda-1.23-MacOSX-arm64.sh
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.. image:: https://github.com/openturns/otconda/actions/workflows/build.yml/badge.svg?branch=master
:target: https://github.com/openturns/otconda/actions/workflows/build.yml

.. image:: https://api.cirrus-ci.com/github/openturns/otconda.svg?branch=master
:target: https://cirrus-ci.com/github/openturns/otconda

otconda installer
=================

Expand Down
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ then
else
OS=MacOSX
fi
ARCH=`uname -m`

# install constructor
wget -c --no-check-certificate https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-${OS}-x86_64.sh -P /tmp
wget -c --no-check-certificate https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-${OS}-${ARCH}.sh -P /tmp
rm -rf /tmp/miniforge
bash /tmp/Miniforge3-${OS}-x86_64.sh -b -p /tmp/miniforge
export PATH="/tmp/miniforge/bin:$PATH"
Expand Down

0 comments on commit 08883bd

Please sign in to comment.