Skip to content

Commit 60f81e3

Browse files
committed
ci: Add quick distchecks to CI
Signed-off-by: Raghu Raja <[email protected]>
1 parent 213172a commit 60f81e3

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/distcheck.yaml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: PR CI
2+
on: [push, pull_request]
3+
env:
4+
APT_PACKAGES: >-
5+
build-essential
6+
gcc
7+
git
8+
libhwloc-dev
9+
make
10+
pkg-config
11+
jobs:
12+
distcheck:
13+
runs-on: ubuntu-22.04
14+
strategy:
15+
matrix:
16+
cc:
17+
- gcc
18+
- clang
19+
fail-fast: false
20+
steps:
21+
- name: Install dependencies (Linux)
22+
run: |
23+
sudo apt-get install -y ${{ env.APT_PACKAGES }}
24+
- name: Install CUDA
25+
run: |
26+
sudo apt-get install -y nvidia-cuda-toolkit
27+
- uses: actions/checkout@v4
28+
- name: Build Check
29+
run: |
30+
set -x
31+
32+
# Install libfabric. We're just doing distchecks, so it is fine if we
33+
# just grab the latest master.
34+
git clone --depth 1 https://github.com/ofiwg/libfabric.git
35+
pushd libfabric
36+
./autogen.sh
37+
./configure --prefix=$PWD/install CC=${{ matrix.cc }}
38+
make -j 4; make install
39+
popd
40+
$PWD/libfabric/install/bin/fi_info -l
41+
42+
# Run the unit tests and make sure distcheck is able to generate a
43+
# tarball successfully.
44+
./autogen.sh
45+
./configure --with-libfabric=$PWD/libfabric/install --with-cuda=/usr/local/cuda/ CC=clang
46+
make -j4; make check; make distcheck
47+
- name: Upload build logs
48+
if: failure()
49+
uses: actions/upload-artifact@v3
50+
with:
51+
name: ${{ matrix.cc }}-config.log
52+
path: config.log

0 commit comments

Comments
 (0)