File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Makefile CI
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : Install CUDA Toolkit
18+ run : |
19+ sudo apt-get update
20+ sudo apt-get install -y wget
21+ wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
22+ sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
23+ sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
24+ sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
25+ sudo apt-get update
26+ sudo apt-get -y install cuda-toolkit-11-7
27+
28+ - name : Set up CUDA environment variables
29+ run : |
30+ echo "PATH=/usr/local/cuda-11.7/bin:$PATH" >> $GITHUB_ENV
31+ echo "LD_LIBRARY_PATH=/usr/local/cuda-11.7/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
32+
33+ - name : Verify nvcc installation
34+ run : nvcc --version
35+
36+ - name : Configure
37+ run : ./configure
38+
39+ - name : Install dependencies
40+ run : make
41+
42+ - name : Run check
43+ run : make check
44+
45+ - name : Run distcheck
46+ run : make distcheck
You can’t perform that action at this time.
0 commit comments