Skip to content

Commit

Permalink
.github/workflows: add a quick draft of make distcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <[email protected]>
  • Loading branch information
bgoglin committed Nov 27, 2023
1 parent cfd3a3c commit 1565b36
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/buildcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build checks

on: [push, pull_request]

jobs:
build-tarball:
name: Build tarball from GIT
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libltdl-dev libcairo2-dev libx11-dev libxml2-dev libxml2-utils libncurses5-dev libxnvctrl-dev libpciaccess-dev libudev-dev pkg-config ocl-icd-opencl-dev autoconf automake libtool doxygen-latex transfig
- uses: actions/checkout@v4
- name: Autogen
run: ./autogen.sh
- name: Configure
run: ./configure --prefix=${PWD}/install
- name: Build
run: make -j
- name: Distcheck
run: make distcheck
- name: Check versions
run: |
contrib/windows/check-versions.sh
contrib/windows-cmake/check-versions.sh
contrib/android/check-versions.sh
- name: Archive tarballs
uses: actions/upload-artifact@v3
with:
name: Tarball
path: hwloc-*.tar.gz
- name: Archive documentation PDF
uses: actions/upload-artifact@v3
with:
name: Documentation PDF
path: doc/doxygen-doc/hwloc-a4.pdf
check-tarball:
name: Check tarball
needs: build-tarball
strategy:
matrix:
os: [debian-latest,ubuntu-latest,fedora-latest,centos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Download tarball
uses: actions/download-artifact@v3
with:
name: Tarball
- name: Extract
run: tar xvf hwloc-*.tar.gz

0 comments on commit 1565b36

Please sign in to comment.