diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 55d76dd1..f2d25c96 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -149,9 +149,10 @@ jobs: LC_ALL: en_US.utf8 LANG: en_US.utf8 container: - image: rockylinux:8 + image: ${{ matrix.container }} strategy: matrix: + container: [rockylinux:8, rockylinux:9] include: - extension_support: 0 variant_tag: "-noext" @@ -162,10 +163,16 @@ jobs: - name: Get version tag id: get_version uses: battila7/get-version-action@v2 - - name: Rocky-Install dependencies + - name: Update yum dependencies + run: yum update -y + - name: Rocky 8 dependencies + if: ${{ matrix.container == 'rockylinux:8' }} + run: yum install -y pkgconfig gcc openssl-devel dbus-glib-devel python3-dbus sqlite-devel libffi-devel wget make findutils + - name: Rocky 9 dependencies + if: ${{ matrix.container == 'rockylinux:9' }} + run: yum install -y pkgconfig gcc openssl-devel dbus-glib-devel python3-dbus sqlite-devel libffi-devel krb5-devel dbus-daemon wget make findutils + - name: Build Python 3.12 run: | - yum update -y - yum install -y pkgconfig gcc openssl-devel dbus-glib-devel python3-dbus sqlite-devel libffi-devel wget make findutils mkdir tmp && cd tmp wget https://www.python.org/ftp/python/3.12.4/Python-3.12.4.tgz tar xzf Python-3.12.4.tgz @@ -195,10 +202,12 @@ jobs: - name: Get build run: | cd dist - tar czf "user-sync-${UST_VERSION}${UST_VARIANT_TAG}-rocky.tar.gz" user-sync + LABEL=$(echo $CONTAINER | sed "s/linux://g") + tar czf "user-sync-${UST_VERSION}${UST_VARIANT_TAG}-${LABEL}.tar.gz" user-sync env: UST_VARIANT_TAG: ${{matrix.variant_tag}} UST_VERSION: ${{ steps.get_version.outputs.version }} + CONTAINER: ${{ matrix.container }} - name: Make artifact uses: actions/upload-artifact@v2 with: