File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 73
73
clippy :
74
74
name : Clippy Lints
75
75
runs-on : ubuntu-18.04
76
+ env :
77
+ AF_VER : 3.8.0
76
78
steps :
77
79
- name : Checkout Repository
78
80
uses : actions/checkout@master
83
85
toolchain : stable
84
86
override : true
85
87
components : clippy
88
+
89
+ - name : Cache ArrayFire
90
+ uses : actions/cache@v1
91
+ id : arrayfire
92
+ with :
93
+ path : afbin
94
+ key : ${{ runner.os }}-af-${{ env.AF_VER }}
95
+
96
+ - name : Download ArrayFire
97
+ # Only download and cache arrayfire if already not found
98
+ if : steps.arrayfire.outputs.cache-hit != 'true'
99
+ run : |
100
+ wget --quiet http://arrayfire.s3.amazonaws.com/${AF_VER}/ArrayFire-v${AF_VER}_Linux_x86_64.sh
101
+ chmod +x ./ArrayFire-v${AF_VER}_Linux_x86_64.sh
102
+ mkdir afbin
103
+ ./ArrayFire-v${AF_VER}_Linux_x86_64.sh --skip-license --exclude-subdir --prefix=./afbin
104
+ rm ./afbin/lib64/libcu*.so*
105
+ rm ./afbin/lib64/libafcuda*.so*
106
+ rm ./ArrayFire-v${AF_VER}_Linux_x86_64.sh
107
+
86
108
- name : Run clippy tool
109
+ env :
110
+ AF_PATH : ${{ github.workspace }}/afbin
87
111
uses : actions-rs/cargo@v1
88
112
with :
89
113
command : clippy
You can’t perform that action at this time.
0 commit comments