-
Notifications
You must be signed in to change notification settings - Fork 22
42 lines (38 loc) · 1.01 KB
/
rust.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
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
test-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Install deps
run: |
sudo apt update
sudo apt-get install -y --no-install-recommends libsoapysdr-dev libclang-dev llvm-dev pkg-config
- uses: actions/checkout@v2
- name: Build
run: cargo build --all-features
- name: Run tests
run: cargo test
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install deps
shell: bash
run: |
curl -L https://downloads.myriadrf.org/builds/PothosSDR/PothosSDR-2021.07.25-vc16-x64.exe -o pothossdr.exe
7z x -opothos -y pothossdr.exe
echo "${{github.workspace}}/pothos/bin" >> $GITHUB_PATH
echo "C:\\msys64\\mingw64\\bin" >> $GITHUB_PATH
- name: Build
shell: bash
run: cargo build --all-features
- name: Run tests
shell: bash
run: cargo test