Skip to content

Commit

Permalink
Macos ci2 (#160)
Browse files Browse the repository at this point in the history
* add from macos-ci

* fix macos makefile
  • Loading branch information
d3v-null authored Sep 24, 2024
1 parent 60f919c commit ccc7e13
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/macos_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
name: MacOS Tests
on:
push:
tags-ignore:
- '**'
branches:
- '**'
pull_request: null
jobs:
test:
name: MacOS Tests
strategy:
matrix:
os:
- macos-13
- macos-14
continue-on-error: true
runs-on: '${{ matrix.os }}'
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: 'rustfmt, clippy'
- name: Install Cargo Make
uses: davidB/rust-cargo-make@v1
- name: Install Dependencies
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 ccc7e13

Please sign in to comment.