From 64da95545963c26c5aac68796e2cb47419ade752 Mon Sep 17 00:00:00 2001 From: Acribbs Date: Sun, 10 Nov 2024 20:03:25 +0000 Subject: [PATCH] oops forgot to make it work with osx --- .github/workflows/cgatcore_python.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cgatcore_python.yml b/.github/workflows/cgatcore_python.yml index dc9ac3f5..80a0b09f 100644 --- a/.github/workflows/cgatcore_python.yml +++ b/.github/workflows/cgatcore_python.yml @@ -27,9 +27,17 @@ jobs: with: path: ~/conda_pkgs_dir key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('conda/environments/cgat-core.yml') }} + - name: Set installer URL + id: set-installer-url + run: | + if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then + echo "installer-url=https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh" >> $GITHUB_ENV + elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then + echo "installer-url=https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh" >> $GITHUB_ENV + fi - uses: conda-incubator/setup-miniconda@v2 with: - installer-url: https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh + installer-url: ${{ env.installer-url }} python-version: ${{ matrix.python-version }} channels: conda-forge, bioconda, defaults channel-priority: true