Skip to content

Commit

Permalink
ci(github): add an al2023 build
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-nslick committed May 21, 2024
1 parent faa2765 commit 15ce4d1
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/pr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,40 +19,53 @@ jobs:
with:
python-version: '3.9'
- uses: pre-commit/action@v3.0.1
al2build:
runs-on: codebuild-ghactions-al2-${{ github.run_id }}-${{ github.run_attempt }}
amazonlinux:
needs: pre-commit
strategy:
matrix:
sdk:
- cuda
amazonlinux:
- al2023
- al2
efainstaller:
- latest
- 1.32.0
- 1.31.0
- 1.30.0
name: al2/${{ matrix.sdk }}/efa@${{ matrix.efainstaller }}/distcheck
include:
- amazonlinux: al2023
efainstallerdir: ALINUX2023
nvidiadistro: fedora37
configmanager: dnf config-manager
- amazonlinux: al2
efainstallerdir: ALINUX2
nvidiadistro: rhel7
configmanager: yum-config-manager
runs-on: codebuild-ghactions-${{ matrix.amazonlinux }}-${{ github.run_id }}-${{ github.run_attempt }}
name: ${{matrix.amazonlinux}}/${{ matrix.sdk }}/efa@${{ matrix.efainstaller }}/distcheck
steps:
# 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 -xvf aws-efa-installer-*.tar.gz
cd aws-efa-installer/RPMS/ALINUX2/x86_64
cd aws-efa-installer/RPMS/${{ matrix.efainstallerdir }}/x86_64
find . | grep rpm$ | xargs sudo yum -y localinstall
- name: Install hwloc, utilities.
run: |
sudo yum -y install hwloc-devel yum-utils
- name: Configure EPEL and Install CUDA
- name: Add EPEL
if: matrix.amazonlinux == 'al2'
run: |
sudo yum -y install \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum-config-manager --add-repo \
http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo \
--save
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- name: Install CUDA
run: |
sudo ${{ 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 cuda libcudnn8-devel
Expand Down

0 comments on commit 15ce4d1

Please sign in to comment.