-
Notifications
You must be signed in to change notification settings - Fork 2
162 lines (159 loc) · 6 KB
/
c-cpp.yml
File metadata and controls
162 lines (159 loc) · 6 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
name: C/C++ CI
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
# env:
# ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
ubuntu_16:
name: Ubuntu 16
runs-on: ubuntu-24.04
container:
image: ubuntu:16.04
volumes:
- /node20217:/node20217:rw,rshared
- /node20217:/__e/node20:ro,rshared
steps:
- name: install git
run: apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:git-core/ppa && apt-get update -y && apt-get install git -y
- name: nodejs
run: |
apt-get install -y wget xz-utils
wget https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
- uses: actions/checkout@v2
- name: install packages
run: apt-get update && apt-get install -y make g++ zlib1g-dev bc
- name: build
run: make -j2 debug=1
- name: test
run: export DEVICE=cpu && make test
ubuntu_16_cuda:
name: Ubuntu 16 CUDA
runs-on: ubuntu-24.04
container:
image: ubuntu:16.04
volumes:
- /node20217:/node20217:rw,rshared
- /node20217:/__e/node20:ro,rshared
steps:
- name: install git
run: apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:git-core/ppa && apt-get update -y && apt-get install git -y
- name: nodejs
run: |
apt-get install -y wget xz-utils
wget https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
- uses: actions/checkout@v2
- name: install packages
run: apt-get update && apt-get install -y make g++ zlib1g-dev bc
- name: cuda
run: |
export DEBIAN_FRONTEND=noninteractive
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-ubuntu1604.pin
mv cuda-ubuntu1604.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget -q -O - http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/3bf863cc.pub | apt-key add -
add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/ /"
apt-get update
apt-get -y --allow-unauthenticated install cuda
- name: build cuda=1
run: make cuda=1 -j2 debug=1
ubuntu_18:
name: Ubuntu 18
runs-on: ubuntu-24.04
container:
image: ubuntu:18.04
volumes:
- /node20217:/node20217:rw,rshared
- /node20217:/__e/node20:ro,rshared
steps:
- name: install git
run: apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:git-core/ppa && apt-get update -y && apt-get install git -y
- name: nodejs
run: |
apt-get install -y wget xz-utils
wget https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
- uses: actions/checkout@v2
- name: install packages
run: apt-get update && apt-get install -y make g++ zlib1g-dev bc
- name: build
run: make -j2 debug=1
- name: test
run: export DEVICE=cpu && make test
ubuntu_20:
name: Ubuntu 20
container:
image: ubuntu:20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: install packages
run: apt-get update && apt-get install -y make g++ zlib1g-dev bc
- name: build
run: make -j2 debug=1
- name: test
run: export DEVICE=cpu && make test
ubuntu_20_cuda:
name: Ubuntu 20 CUDA
container:
image: ubuntu:20.04
runs-on: ubuntu-24.04
steps:
- name: install packages
run: export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install zlib1g-dev wget datamash unzip bzip2 make g++ bc git gnupg software-properties-common -y
- uses: actions/checkout@v2
- name: install packages
run: apt-get update && apt-get install -y make g++ zlib1g-dev bc wget gnupg software-properties-common
- name: cuda
run: |
export DEBIAN_FRONTEND=noninteractive
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
dpkg -i cuda-keyring_1.0-1_all.deb
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
apt-get update
apt-get -y install cuda-11-1
- name: build cuda=1
run: make -j2 cuda=1 debug=1
ubuntu_22:
name: Ubuntu 22
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: install packages
run: sudo apt-get update && sudo apt-get install valgrind
- name: build
run: make -j2 debug=1
- name: test
run: export DEVICE=cpu && make test
ubuntu_22_rocm:
name: Ubuntu 22 ROCM
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: rocm
run: |
sudo apt update
wget https://repo.radeon.com/amdgpu-install/5.7.1/ubuntu/jammy/amdgpu-install_5.7.50701-1_all.deb
sudo apt install ./amdgpu-install_5.7.50701-1_all.deb
sudo amdgpu-install --no-dkms --usecase=rocmdev
- name: build
run: make rocm=1 -j2 debug=1
ubuntu_24:
name: Ubuntu 24
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: build
run: make -j2 debug=1
- name: test
run: export DEVICE=cpu && make test
- name: build asan
run: make clean && make asan=1 -j2 debug=1
- name: asan
run: export DEVICE=cpu && make test