forked from rsmpi/rsmpi
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (76 loc) · 2.48 KB
/
test.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- '*'
defaults:
run:
shell: bash
jobs:
test:
name: rsmpi
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.rust == 'nightly' }}
strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-latest
rust: nightly
mpi_package: libmpich-dev
cargo_flags: --all-features
- os: ubuntu-latest
rust: stable
mpi_package: libmpich-dev
cargo_flags: --all-features
- os: ubuntu-latest
rust: 1.60.0
mpi_package: libmpich-dev
cargo_flags: --all-features
- os: macos-latest
rust: stable
mpi_package: open-mpi
cargo_flags: --all-features
- os: ubuntu-latest
rust: stable
mpi_package: libopenmpi-dev
cargo_flags: --all-features
- os: windows-2022
rust: stable
cargo_flags: --features derive
steps:
- uses: actions/checkout@v3
- name: Install (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y llvm-dev libclang-dev pkgconf ${{ matrix.mpi_package }}
- name: Install (MacOS)
if: runner.os == 'macOS'
# Workaround for intermittent failures with OMPI https://github.com/open-mpi/ompi/issues/7393
run: |
brew install llvm@13 ${{ matrix.mpi_package }}
echo TMPDIR=/tmp | tee -a $GITHUB_ENV
env
- name: Install (Windows)
if: runner.os == 'Windows'
run: |
choco install llvm --version 14.0.6 --allow-downgrade -y
sh ci/install-mpi-windows.sh
echo MSMPI_INC="C:\\Program Files (x86)\\Microsoft SDKs\\MPI\\Include\\" | tee -a $GITHUB_ENV
echo MSMPI_LIB32="C:\\Program Files (x86)\\Microsoft SDKs\\MPI\\Lib\\x86\\" | tee -a $GITHUB_ENV
echo MSMPI_LIB64="C:\\Program Files (x86)\\Microsoft SDKs\\MPI\\Lib\\x64\\" | tee -a $GITHUB_ENV
env
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
- name: Cargo Test ${{ matrix.cargo_flags }}
run: cargo test ${{ matrix.cargo_flags }}
- name: Parallel Examples
run: |
cargo install --force cargo-mpirun
export PATH="/c/Program Files/Microsoft MPI/Bin:${PATH}"
ci/run-examples.sh ${{ matrix.cargo_flags }}