From d2ff26ab8f5fef8ccf63cace9e747f9f2dee1029 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Sun, 12 Nov 2023 10:38:04 -0500 Subject: [PATCH] [CI] install octave via conda on macos to avoid hanged install --- .github/workflows/run_test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml index f68b98a..45c393b 100644 --- a/.github/workflows/run_test.yml +++ b/.github/workflows/run_test.yml @@ -22,7 +22,11 @@ jobs: - name: Install dependencies run: | [[ "$RUNNER_OS" == "Linux" ]] && sudo apt-get update && sudo apt-get install -y octave - [[ "$RUNNER_OS" == "macOS" ]] && brew install octave + if [[ "$RUNNER_OS" == "macOS" ]]; then + conda config --add channels conda-forge + conda config --set channel_priority strict + conda install octave + fi if [[ "$RUNNER_OS" == "Windows" ]]; then curl --retry 3 -kL http://cdimage.debian.org/mirror/gnu.org/gnu/octave/windows/octave-7.3.0-w64-64.7z --output octave_7.3.0.7z 7z x octave_7.3.0.7z -ooctave -y