Skip to content

packaging: add Debian/RPM packaging and CI for the NVIDIA backend #19

packaging: add Debian/RPM packaging and CI for the NVIDIA backend

packaging: add Debian/RPM packaging and CI for the NVIDIA backend #19

Workflow file for this run

name: Build RPM Packages
on:
push:
tags:
- 'v*'
pull_request:
branches: [ main, master, multi-backend ]
paths:
- 'src/**'
- 'CMakeLists.txt'
- 'packaging/rpm/**'
- '.github/workflows/build-rpm.yml'
workflow_dispatch:
jobs:
build-rpm-packages:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- base_image: "nvidia/cuda:12.6.0-devel-rockylinux9"
label: "rocky9-cuda1260"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build RPM packages
run: |
cd packaging/rpm
./build-rpm.sh \
--base-image "${{ matrix.base_image }}" \
--output-dir "${{ github.workspace }}/output"
- name: Upload RPM packages
uses: actions/upload-artifact@v4
with:
# Match flagos-packaging components/libtriton-jit.yml
# artifact_pattern "libtriton-jit-*-rpm-packages".
name: libtriton-jit-${{ matrix.label }}-rpm-packages
path: |
output/rpms/**/*.rpm
output/srpms/**/*.rpm
retention-days: 7