Skip to content
Open
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
9 changes: 7 additions & 2 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
python-version: [3.8]
#platform: [ubuntu-18.04, macos-latest]
platform: [ubuntu-20.04]
platform: [ubuntu-20.04, macos-latest, ubuntu-22.04-arm]
runs-on: ${{ matrix.platform }}

steps:
Expand All @@ -27,7 +27,12 @@ jobs:

- name: Install IC
run: |
source $CONDA/etc/profile.d/conda.sh

case "$(uname -m)" in
x86_64) source $CONDA/etc/profile.d/conda.sh ;;
aarch64) echo "CONDA=/home/runner/miniconda" >> "$GITHUB_ENV" ;;
arm64) echo "CONDA=/Users/runner/miniconda" >> "$GITHUB_ENV" ;;
esac
source manage.sh work_in_python_version_no_tests ${{ matrix.python-version }}


Expand Down
17 changes: 16 additions & 1 deletion manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,26 @@ function install_conda {
;;
esac

# Setting architecture based on input
ARCH=$(uname -m)

case $ARCH in

x86_64) : ;;
arm64) : ;;
aarch64) : ;;
*)
echo "Installation only supported on x86_64 and arm architectures"
exit 1
;;
esac


if conda --version ; then
echo Conda already installed. Skipping conda installation.
else
echo Installing conda for $CONDA_OS
CONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-py${PYTHON_VERSION//.}_4.9.2-${CONDA_OS}-x86_64.sh"
CONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-py${PYTHON_VERSION//.}_4.12.0-${CONDA_OS}-${ARCH}.sh"
if which wget; then
wget ${CONDA_URL} -O miniconda.sh
else
Expand Down
Loading