@@ -3,42 +3,74 @@ name: speexdsp
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- rustfmt :
6
+
7
+ rustfmt-clippy :
7
8
8
9
runs-on : ubuntu-latest
9
10
11
+ env :
12
+ SPEEX_DIR : speex-dir
13
+
10
14
steps :
11
- - uses : actions/checkout@v1
15
+ - uses : actions/checkout@v2
16
+
12
17
- name : Install stable
13
18
uses : actions-rs/toolchain@v1
14
19
with :
15
20
profile : minimal
16
21
toolchain : stable
17
22
override : true
18
- components : rustfmt
23
+ components : rustfmt, clippy
24
+
19
25
- name : Run rustfmt
20
26
uses : actions-rs/cargo@v1
21
27
with :
22
28
command : fmt
23
29
args : -- --check --verbose
24
30
31
+ - name : Install speexdsp
32
+ run : |
33
+ git clone https://github.com/xiph/speexdsp.git
34
+ cd speexdsp
35
+ ./autogen.sh
36
+ ./configure --prefix=$HOME/$SPEEX_DIR
37
+ make -j4 install
38
+
39
+ - name : Set environment variables
40
+ run : |
41
+ echo "::set-env name=PKG_CONFIG_PATH::$HOME/$SPEEX_DIR/lib/pkgconfig"
42
+ echo "::set-env name=LD_LIBRARY_PATH::$HOME/$SPEEX_DIR/lib"
43
+
44
+ - name : Run clippy
45
+ uses : actions-rs/clippy-check@v1
46
+ with :
47
+ token : ${{ secrets.GITHUB_TOKEN }}
48
+ args : --all-features -- --verbose
49
+
25
50
build :
26
51
52
+ env :
53
+ SPEEX_DIR : speex-dir
54
+
27
55
runs-on : ubuntu-latest
28
56
29
57
steps :
30
- - uses : actions/checkout@v1
58
+ - uses : actions/checkout@v2
59
+
31
60
- name : Install speexdsp
32
61
run : |
33
62
git clone https://github.com/xiph/speexdsp.git
34
63
cd speexdsp
35
64
./autogen.sh
36
- ./configure --prefix=$HOME/speex_dir
37
- make
38
- make install
65
+ ./configure --prefix=$HOME/$SPEEX_DIR
66
+ make -j4 install
67
+
68
+ - name : Set environment variables
69
+ run : |
70
+ echo "::set-env name=PKG_CONFIG_PATH::$HOME/$SPEEX_DIR/lib/pkgconfig"
71
+ echo "::set-env name=LD_LIBRARY_PATH::$HOME/$SPEEX_DIR/lib"
72
+
39
73
- name : Run tests
40
74
run : |
41
- export PKG_CONFIG_PATH=$HOME/speex_dir/lib/pkgconfig:$PKG_CONFIG_PATH
42
- export LD_LIBRARY_PATH=$HOME/speex_dir/lib:$LD_LIBRARY_PATH
43
75
cargo test --all-features
44
76
cargo test --no-default-features
0 commit comments