Skip to content

Commit

Permalink
fixup! ci: add al2023 rpm builds
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-nslick committed Aug 23, 2024
1 parent aca9f7e commit 967c953
Showing 1 changed file with 60 additions and 7 deletions.
67 changes: 60 additions & 7 deletions .github/workflows/srpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Package Generation
on: [push, pull_request]
jobs:
srpm:
name: Generate SRPM
name: "Generate SRPM"
runs-on: ubuntu-latest
container:
image: fedora:rawhide
Expand All @@ -18,8 +18,12 @@ jobs:
path: "*.src.rpm"
if-no-files-found: 'error'
compression-level: '0'

mock-rpm:
runs-on: ubuntu-latest
container:
image: fedora:39
options: --privileged --cap-add SYS_ADMIN
needs: srpm
strategy:
matrix:
Expand All @@ -34,20 +38,69 @@ jobs:
accel_repo: ""
efa_repo: "./aws-efa-installer/RPMS/ALINUX2023/x86_64/"
mock: "/etc/mock/amazonlinux-2023-x86_64.cfg"
name: [rpm] ${{ matrix.name }}
container:
image: fedora:rawhide
options: --privileged
- name: al2-x86-cuda-aws
args: "--define 'with_cuda 1' --define 'with_platform_aws 1'"
accel_repo: --addrepo "https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/"
efa_repo: "./aws-efa-installer/RPMS/ALINUX2/x86_64/"
mock: "/etc/mock/amazonlinux-2-x86_64.cfg"
- name: al2-x86-neuron-aws
args: "--define 'with_neuron 1' --define 'with_platform_aws 1'"
accel_repo: ""
efa_repo: "./aws-efa-installer/RPMS/ALINUX2/x86_64/"
mock: "/etc/mock/amazonlinux-2-x86_64.cfg"
- name: rocky9-x86-neuron-aws
args: "--define 'with_neuron 1' --define 'with_platform_aws 1'"
accel_repo: ""
efa_repo: "./aws-efa-installer/RPMS/ROCKYLINUX9/x86_64/"
mock: "/etc/mock/rocky+epel-9-x86_64.cfg"
- name: rocky9-x86-cuda-aws
args: "--define 'with_neuron 1' --define 'with_platform_aws 1'"
accel_repo: --addrepo "https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/"
efa_repo: "./aws-efa-installer/RPMS/ROCKYLINUX8/x86_64/"
mock: "/etc/mock/rocky+epel-9-x86_64.cfg"
- name: rocky8-x86-neuron-aws
args: "--define 'with_neuron 1' --define 'with_platform_aws 1'"
accel_repo: ""
efa_repo: "./aws-efa-installer/RPMS/ROCKYLINUX8/x86_64/"
mock: "/etc/mock/rocky-8-x86_64.cfg"
- name: rocky8-x86-cuda-aws
args: "--define 'with_neuron 1' --define 'with_platform_aws 1'"
accel_repo: --addrepo "https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/"
efa_repo: "./aws-efa-installer/RPMS/ROCKYLINUX8/x86_64/"
mock: "/etc/mock/rocky-8-x86_64.cfg"
- name: leap155-x86-neuron-aws
args: "--define 'with_neuron 1' --define 'with_platform_aws 1'"
accel_repo: ""
efa_repo: "./aws-efa-installer/RPMS/SUSE/x86_64/"
mock: "/etc/mock/opensuse-leap-15.5-x86_64.cfg"
- name: leap155-x86-cuda-aws
args: "--define 'with_neuron 1' --define 'with_platform_aws 1'"
accel_repo: --addrepo "https://developer.download.nvidia.com/compute/cuda/repos/opensuse15/x86_64/"
efa_repo: "./aws-efa-installer/RPMS/SUSE/x86_64/"
mock: "/etc/mock/opensuse-leap-15.5-x86_64.cfg"
## need to figure out binfmt_misc registration under gh actions for these to work.
# - name: rocky9-aarch64-neuron-aws
# args: "--define 'with_neuron 1' --define 'with_platform_aws 1'"
# accel_repo: ""
# efa_repo: "./aws-efa-installer/RPMS/ROCKYLINUX9/aarch64/"
# mock: "/etc/mock/rocky+epel-9-aarch64.cfg"
# - name: rocky9-aarch64-cuda-aws
# args: "--define 'with_neuron 1' --define 'with_platform_aws 1'"
# accel_repo: --addrepo "https://developer.download.nvidia.com/compute/cuda/repos/rhel9/aarch64/"
# efa_repo: "./aws-efa-installer/RPMS/ROCKYLINUX9/aarch64/"
# mock: "/etc/mock/rocky+epel-9-aarch64.cfg"

name: Build RPM for ${{ matrix.name }}
steps:
- run: dnf install -y mock nodejs unzip curl createrepo_c
- run: dnf install -y mock nodejs createrepo_c
- uses: actions/download-artifact@master
with:
name: "libnccl-net-ofi.src.rpm"
path: .
- run: curl -O https://efa-installer.amazonaws.com/aws-efa-installer-latest.tar.gz
- run: tar xf ./aws-efa-installer-latest.tar.gz
- run: bash -c "cd ${{ matrix.efa_repo }} && createrepo_c ."
- run: mock --verbose --addrepo $(realpath ${{ matrix.efa_repo }}) ${{ matrix.accel_repo }} -r ${{ matrix.mock }} ${{ matrix.args }} *.src.rpm
- run: mock --isolation=simple --verbose --addrepo file://$(realpath ${{ matrix.efa_repo }}) ${{ matrix.accel_repo }} -r ${{ matrix.mock }} ${{ matrix.args }} *.src.rpm
- run: rpm -qpl /var/lib/mock/**/result/*.rpm
#- uses: actions/upload-artifact@v4
# with:
Expand Down

0 comments on commit 967c953

Please sign in to comment.