Skip to content

Commit

Permalink
ci: Add quick distribution checks to CI
Browse files Browse the repository at this point in the history
During the 1.8.0-aws release, we realized the distribution generation
had been broken for a while. Adding quick sanity checks as a Github
Action to prevent this from happening in the future.

Runs to completion in 2 minutes.

Signed-off-by: Raghu Raja <[email protected]>
  • Loading branch information
rajachan authored and bwbarrett committed Feb 22, 2024
1 parent 213172a commit e2f795d
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/distcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: PR CI
on: [push, pull_request]
env:
APT_PACKAGES: >-
build-essential
clang
gcc
git
libhwloc-dev
make
jobs:
distcheck:
runs-on: ubuntu-22.04
strategy:
matrix:
cc:
- gcc
- clang
fail-fast: false
steps:
- name: Install Dependencies
run: |
sudo apt-get install -y ${{ env.APT_PACKAGES }}
- name: Install CUDA
run: |
sudo apt-get install -y nvidia-cuda-toolkit
- uses: actions/checkout@v4
- name: Build and Distribution Checks
run: |
set -x
# We're just doing distchecks, so it is fine if we
# just grab the latest master.
git clone --depth 1 https://github.com/ofiwg/libfabric.git
pushd libfabric
./autogen.sh
./configure --prefix=$PWD/install CC=${{ matrix.cc }}
make -j $(nproc)
make install
popd
# actions/checkout@v4 would drop the plugin source in $PWD,
# so go ahead and build it
./autogen.sh
./configure --with-libfabric=$PWD/libfabric/install --with-cuda=/usr/local/cuda/ CC=${{ matrix.cc }}
make -j $(nproc)
# Run Unit tests
make check
# Run dist tarball checks
make distcheck
- name: Upload build logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.cc }}-config.log
path: config.log

0 comments on commit e2f795d

Please sign in to comment.