Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci/github): use docker instead of codebuild #608

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 41 additions & 17 deletions .github/workflows/distcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,27 @@ on:
- master
- main
- v*
paths:
aws-nslick marked this conversation as resolved.
Show resolved Hide resolved
- "configure.ac"
- "Makefile.am"
- "autogen.sh"
- "include/**"
- "m4/**"
- "src/**"
- "tests/**"
- "topology/**"
- ".github/workflows/**"
pull_request:
paths:
- "configure.ac"
- "Makefile.am"
- "autogen.sh"
- "include/**"
- "m4/**"
- "src/**"
- "tests/**"
- "topology/**"
- ".github/workflows/**"
env:
APT_PACKAGES: >-
build-essential
Expand All @@ -27,49 +47,53 @@ jobs:
matrix:
sdk:
- cuda
amazonlinux:
- al2023
- al2
container:
- amazonlinux:2023
- amazonlinux:2
efainstaller:
- latest
- 1.25.0
include:
- amazonlinux: al2023
- container: amazonlinux:2023
efainstallerdir: ALINUX2023
nvidiadistro: fedora37
nvidiadistro: amzn2023
configmanager: dnf config-manager
cudapackages: cuda-cudart-devel-12-3 cuda-driver-devel-12-3
cudapackages: cuda-cudart-devel-12-5 cuda-driver-devel-12-5

- amazonlinux: al2
- container: amazonlinux:2
efainstallerdir: ALINUX2
nvidiadistro: rhel7
configmanager: yum-config-manager
cudapackages: cuda-cudart-devel-12-3 cuda-driver-devel-12-3
cudapackages: cuda-cudart-devel-12-4 cuda-driver-devel-12-4

runs-on: codebuild-ghactions-${{ matrix.amazonlinux }}-${{ github.run_id }}-${{ github.run_attempt }}
name: ${{matrix.amazonlinux}}/${{ matrix.sdk }}/efa@${{ matrix.efainstaller }}/makeinstall
runs-on: ubuntu-latest
container: ${{ matrix.container }}
name: ${{matrix.container}}/${{ matrix.sdk }}/efa@${{ matrix.efainstaller }}/makeinstall
steps:
- run: |
yum -y update && yum -y install git tar util-linux findutils yum-utils
# note, do not bump to v4: https://github.com/actions/checkout/issues/1590
- uses: actions/checkout@v3
- name: Fetch and Install EFA Installer Dependencies
run: |
curl -O https://efa-installer.amazonaws.com/aws-efa-installer-${{ matrix.efainstaller }}.tar.gz
tar -xf aws-efa-installer-*.tar.gz
cd aws-efa-installer/RPMS/${{ matrix.efainstallerdir }}/x86_64
find . | grep rpm$ | xargs sudo yum -y localinstall
find . | grep rpm$ | xargs yum -y localinstall
- name: Install hwloc, utilities.
run: |
sudo yum -y install hwloc-devel yum-utils
yum -y install hwloc-devel autoconf automake libtool gcc g++ git make
- name: Install CUDA
run: |
sudo ${{ matrix.configmanager }} --add-repo \
${{ matrix.configmanager }} --add-repo \
http://developer.download.nvidia.com/compute/cuda/repos/${{ matrix.nvidiadistro }}/x86_64/cuda-${{ matrix.nvidiadistro }}.repo \
--save
sudo yum -y clean expire-cache
sudo yum -y install ${{ matrix.cudapackages }}
yum -y clean expire-cache
yum -y install ${{ matrix.cudapackages }}

- name: Call `autoreconf -ivf`
run: ./autogen.sh
run: |
./autogen.sh

- name: Call `./configure`
run: |
Expand All @@ -83,7 +107,7 @@ jobs:
run: make -j

- name: Call `make install`
run: sudo make install
run: make install

distcheck:
runs-on: ubuntu-22.04
Expand Down
Loading