Skip to content

Commit ccc7e13

Browse files
authored
Macos ci2 (#160)
* add from macos-ci * fix macos makefile
1 parent 60f919c commit ccc7e13

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/workflows/macos_ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
2+
name: MacOS Tests
3+
on:
4+
push:
5+
tags-ignore:
6+
- '**'
7+
branches:
8+
- '**'
9+
pull_request: null
10+
jobs:
11+
test:
12+
name: MacOS Tests
13+
strategy:
14+
matrix:
15+
os:
16+
- macos-13
17+
- macos-14
18+
continue-on-error: true
19+
runs-on: '${{ matrix.os }}'
20+
steps:
21+
- name: Checkout sources
22+
uses: actions/checkout@v2
23+
with:
24+
fetch-depth: 0
25+
- name: Install stable toolchain
26+
uses: actions-rs/toolchain@v1
27+
with:
28+
profile: minimal
29+
toolchain: stable
30+
override: true
31+
components: 'rustfmt, clippy'
32+
- name: Install Cargo Make
33+
uses: davidB/rust-cargo-make@v1
34+
- name: Install Dependencies
35+
run: |
36+
# cargo make install_deps # doesn't work
37+
brew install casacore/tap/casacore mwatelescope/tap/aoflagger
38+
- name: Run tests
39+
run: |
40+
cargo make test_no_default
41+
cargo make test_no_flag
42+
cargo make test
43+
env:
44+
DYLD_FALLBACK_LIBRARY_PATH: /opt/homebrew/lib/
45+
AOFLAGGER_LIB: /opt/homebrew/lib/
46+
AOFLAGGER_INCLUDE_DIR: /opt/homebrew/include/

Makefile.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,14 @@ dependencies = ["install_cfitsio"]
122122
[tasks.linux_install_deps]
123123
dependencies = ["linux_install_aoflagger"]
124124

125+
[tasks.mac_install_deps]
126+
script = """
127+
brew install casacore/tap/casacore mwatelescope/tap/aoflagger
128+
"""
129+
125130
[tasks.install_deps]
126131
linux_alias = "linux_install_deps"
132+
mac_alias = "mac_install_deps"
127133

128134
[tasks.linux_check_deps]
129135
script = """

0 commit comments

Comments
 (0)