diff --git a/.github/workflows/test_suite.yml b/.github/workflows/test_suite.yml index 01243e563..9c9b28675 100644 --- a/.github/workflows/test_suite.yml +++ b/.github/workflows/test_suite.yml @@ -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: @@ -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 }} diff --git a/manage.sh b/manage.sh index 16c63a65c..03cff1460 100644 --- a/manage.sh +++ b/manage.sh @@ -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