Skip to content

Commit 7d4bb96

Browse files
committed
add conda and static to CI
1 parent a29df6b commit 7d4bb96

1 file changed

Lines changed: 57 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 57 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
steps:
1919
- name: Checkout repository
2020
uses: actions/checkout@v2
21+
with: {submodules: true}
2122
- name: Install rust
2223
uses: actions-rs/toolchain@v1
2324
with:
@@ -32,9 +33,9 @@ jobs:
3233
- name: Clippy
3334
run: cargo clippy --workspace -- -D warnings
3435

35-
test:
36-
name: test
37-
runs-on: ${{ matrix.os }}
36+
test_apt:
37+
name: test apt
38+
runs-on: ubuntu-18.04
3839
strategy:
3940
matrix:
4041
build:
@@ -43,17 +44,15 @@ jobs:
4344
- nightly
4445
include:
4546
- build: stable
46-
os: ubuntu-18.04
4747
rust: stable
4848
- build: beta
49-
os: ubuntu-18.04
5049
rust: beta
5150
- build: nightly
52-
os: ubuntu-18.04
5351
rust: nightly
5452
steps:
5553
- name: Checkout repository
5654
uses: actions/checkout@v2
55+
with: {submodules: false}
5756

5857
- name: Install netcdf
5958
run: sudo apt-get install libnetcdf-dev
@@ -66,12 +65,62 @@ jobs:
6665
override: true
6766

6867
- name: Build
69-
run: cargo build --verbose --workspace
68+
run: cargo build --verbose --workspace --exclude netcdf-src
7069

7170
- name: Test
72-
run: cargo test --verbose --workspace
71+
run: cargo test --verbose --workspace --exclude netcdf-src
7372
if: matrix.os == 'ubuntu-18.04'
7473

74+
conda:
75+
name: conda
76+
runs-on: ${{matrix.os}}-latest
77+
strategy:
78+
fail-fast: false
79+
matrix:
80+
include:
81+
- {os: ubuntu, channel: conda-forge, rust: stable}
82+
- {os: windows, channel: conda-forge, rust: stable}
83+
- {os: macos, channel: conda-forge, rust: stable}
84+
defaults:
85+
run:
86+
shell: bash -l {0}
87+
steps:
88+
- name: Checkout repository
89+
uses: actions/checkout@v2
90+
with: {submodules: true}
91+
- name: Install Rust (${{matrix.rust}})
92+
uses: actions-rs/toolchain@v1
93+
with: {toolchain: '${{matrix.rust}}', profile: minimal, override: true}
94+
- name: Install conda
95+
uses: goanpeca/setup-miniconda@v1
96+
with: {auto-update-conda: false, activate-environment: testenv}
97+
- name: Install netCDF
98+
run: conda install -y -c ${{matrix.channel}} netcdf
99+
- name: Build and test
100+
run: cargo test -vv --workspace --exclude hdf5-src
101+
102+
static_builds:
103+
name: static builds
104+
runs_on: ${{matrix.os}}-latest
105+
strategy:
106+
fail-fast: false
107+
matrix:
108+
include:
109+
- {os: ubuntu, rust: stable}
110+
- {os: windows, rust: stable}
111+
- {os: macos, rust: stable}
112+
defaults:
113+
run: bash -l {0}
114+
steps:
115+
- name: Checkout repository
116+
uses: actions/checkout@v2
117+
with: {submodules: true}
118+
- name: Install Rust (${{matrix.rust}})
119+
uses: actions-rs/toolchain@v1
120+
with: {toolchain: '${{matrix.rust}}', profile: minimal, override: true}
121+
- name: Build and test
122+
run: cargo test -vv --workspace --features static
123+
75124
tarpaulin:
76125
name: tarpaulin
77126
runs-on: ubuntu-18.04

0 commit comments

Comments
 (0)