-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (52 loc) · 1.46 KB
/
rust-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: cargodev
on:
push:
branches-ignore:
- main
pull_request:
branches:
- "**"
env:
CARGO_TERM_COLOR: always
jobs:
build-linux:
name: Build on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare environment
run: |
sudo apt-get update
sudo apt-get install clang
sudo apt-get install libclang1
sudo apt-get install libeccodes-dev
rustup update stable
cargo clean
- name: Test with cargo
run: |
RUST_BACKTRACE=full cargo test --features "experimental_index, message_ndarray" -- --include-ignored
- name: Check with clippy
run: |
cargo clippy --features "experimental_index, message_ndarray"
- name: Build release
run: |
cargo build --release --features "experimental_index, message_ndarray"
build-macos:
name: Build on MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Prepare environment
run: |
brew install eccodes
rustup update stable
cargo clean
- name: Test with cargo
run: |
RUST_BACKTRACE=full cargo test --features "experimental_index, message_ndarray" -- --include-ignored
- name: Check with clippy
run: |
cargo clippy --features "experimental_index, message_ndarray"
- name: Build release
run: |
cargo build --release --features "experimental_index, message_ndarray"