Skip to content

Commit

Permalink
fix macos makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Sep 24, 2024
1 parent c2dcb74 commit 68cb41a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
strategy:
matrix:
os:
- macos-latest
- macos-10.15
- macos-13
- macos-14
continue-on-error: true
runs-on: '${{ matrix.os }}'
steps:
Expand Down
11 changes: 11 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,19 @@ dependencies = ["install_cfitsio"]
[tasks.linux_install_deps]
dependencies = ["linux_install_aoflagger"]

[tasks.mac_install_deps]
script = """
if [[ $(uname -m) == 'arm64' ]]; then
arch -arm64 brew upgrade || echo "huh?"
arch -arm64 brew install casacore/tap/casacore mwatelescope/tap/aoflagger
else
brew install casacore/tap/casacore mwatelescope/tap/aoflagger
fi
"""

[tasks.install_deps]
linux_alias = "linux_install_deps"
mac_alias = "mac_install_deps"

[tasks.linux_check_deps]
script = """
Expand Down

0 comments on commit 68cb41a

Please sign in to comment.