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 4737d1f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
19 changes: 14 additions & 5 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 All @@ -32,6 +32,15 @@ jobs:
- name: Install Cargo Make
uses: davidB/rust-cargo-make@v1
- name: Install Dependencies
run: cargo make install_deps
- run: cargo make test --no-default-features
- run: cargo make test
run: |
# cargo make install_deps # doesn't work
brew install casacore/tap/casacore mwatelescope/tap/aoflagger
- name: Run tests
run: |
cargo make test_no_default
cargo make test_no_flag
cargo make test
env:
DYLD_FALLBACK_LIBRARY_PATH: /opt/homebrew/lib/
AOFLAGGER_LIB: /opt/homebrew/lib/
AOFLAGGER_INCLUDE_DIR: /opt/homebrew/include/
6 changes: 6 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,14 @@ dependencies = ["install_cfitsio"]
[tasks.linux_install_deps]
dependencies = ["linux_install_aoflagger"]

[tasks.mac_install_deps]
script = """
brew install casacore/tap/casacore mwatelescope/tap/aoflagger
"""

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

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

0 comments on commit 4737d1f

Please sign in to comment.