File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 - name : Install prerequisites
1313 run : |
1414 sudo apt install clang libomp-dev
15- - name : Download and extract TensorFlow
16- run : |
17- wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.7.0.tar.gz
18- tar -xzvf libtensorflow-cpu-linux-x86_64-2.7.0.tar.gz
19- - name : Set TensorFlow environment variables
20- run : |
21- echo "TensorFlow_INCLUDE_DIRS=${PWD}/include" >> $GITHUB_ENV
22- echo "TensorFlow_LIBRARIES=${PWD}/lib/libtensorflow.so" >> $GITHUB_ENV
23- echo "export TensorFlow_INCLUDE_DIRS=${PWD}/include" >> $GITHUB_ENV
24- echo "export TensorFlow_LIBRARIES=${PWD}/lib/libtensorflow.so" >> $GITHUB_ENV
25- - name : Display TensorFlow environment variables
26- run : |
27- echo "TensorFlow_INCLUDE_DIRS: ${{ env.TensorFlow_INCLUDE_DIRS }}"
28- echo "TensorFlow_LIBRARIES: ${{ env.TensorFlow_LIBRARIES }}"
2915 - name : Setup ccache
3016 uses : hendrikmuhs/ccache-action@v1.2
3117 with :
3723 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
3824 -DCMAKE_C_COMPILER=clang \
3925 -DCMAKE_CXX_COMPILER=clang++ \
40- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
41- -DTensorFlow_INCLUDE_DIRS=$TensorFlow_INCLUDE_DIRS \
42- -DTensorFlow_LIBRARIES=$TensorFlow_LIBRARIES
26+ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
4327 cmake --build build --parallel
4428 - name : Run clang-tidy
4529 run : |
You can’t perform that action at this time.
0 commit comments