Skip to content

Commit 2584c42

Browse files
committed
パッケージビルドを簡素化。
1 parent 3101cf3 commit 2584c42

4 files changed

Lines changed: 18 additions & 32 deletions

File tree

.github/workflows/build_base_images.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
include:
17-
- dockerimg: ubuntu2404_cuda12
18-
- dockerimg: ubuntu2204_cuda11
19-
- dockerimg: ubuntu2004_cuda11
20-
- dockerimg: fedora39_cuda12
21-
- dockerimg: fedora41_cuda12
16+
include:
17+
- dockerimg: ubuntu2004_cuda11
18+
- dockerimg: fedora39_cuda12
2219

2320
env:
2421
DOCKER_FILE: docker/docker_${{ matrix.dockerimg }}

.github/workflows/build_packages.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,16 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
include:
18-
- dockerimg: ubuntu2404_cuda12
19-
pkgtype: deb
20-
arch: x86_64
21-
- dockerimg: ubuntu2204_cuda11
22-
pkgtype: deb
23-
arch: x86_64
24-
- dockerimg: ubuntu2004_cuda11
25-
pkgtype: deb
26-
arch: x86_64
27-
- dockerimg: fedora39_cuda12
28-
pkgtype: rpm
29-
arch: x86_64
30-
- dockerimg: fedora41_cuda12
31-
pkgtype: rpm
32-
arch: x86_64
33-
#- dockerimg: ubuntu2204_cuda11_aarch64
34-
# pkgtype: deb
35-
# arch: arm64
17+
include:
18+
- dockerimg: ubuntu2004_cuda11
19+
pkgtype: deb
20+
arch: x86_64
21+
- dockerimg: fedora39_cuda12
22+
pkgtype: rpm
23+
arch: x86_64
24+
#- dockerimg: ubuntu2204_cuda11_aarch64
25+
# pkgtype: deb
26+
# arch: arm64
3627

3728
env:
3829
DOCKER_IMAGE: ${{ matrix.dockerimg }}

build_deb.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ if [ -e /etc/lsb-release ]; then
1616
PACKAGE_OS_CODENAME=`cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -f 2 --delim="="`
1717
PACKAGE_OS="_${PACKAGE_OS_ID}${PACKAGE_OS_VER}"
1818
if [ "${PACKAGE_OS_CODENAME}" = "focal" ]; then
19-
PACKAGE_DEPENDS="libc6(>=2.29)"
19+
PACKAGE_DEPENDS="libc6(>=2.31)"
2020
elif [ "${PACKAGE_OS_CODENAME}" = "bionic" ]; then
2121
PACKAGE_DEPENDS="libc6(>=2.22)"
2222
elif [ "${PACKAGE_OS_CODENAME}" = "jammy" ]; then
23-
PACKAGE_DEPENDS="libc6(>=2.22)"
23+
PACKAGE_DEPENDS="libc6(>=2.31)"
2424
elif [ "${PACKAGE_OS_CODENAME}" = "noble" ]; then
25-
PACKAGE_DEPENDS="libc6(>=2.22)"
25+
PACKAGE_DEPENDS="libc6(>=2.31)"
2626
else
2727
echo "${PACKAGE_OS_ID}${PACKAGE_OS_VER} ${PACKAGE_OS_CODENAME} not supported in this script!"
2828
exit 1
@@ -50,5 +50,5 @@ mkdir -p ${PACKAGE_ROOT}/usr/bin
5050
cp ${PACKAGE_BIN} ${PACKAGE_ROOT}/usr/bin
5151
chmod +x ${PACKAGE_ROOT}/usr/bin/${PACKAGE_BIN}
5252

53-
DEB_FILE="${PACKAGE_NAME}_${PACKAGE_VERSION}${PACKAGE_OS}_${PACKAGE_ARCH}.deb"
53+
DEB_FILE="${PACKAGE_NAME}_${PACKAGE_VERSION}_${PACKAGE_ARCH}.deb"
5454
dpkg-deb -b "${PACKAGE_ROOT}" "${DEB_FILE}"

build_rpm.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,4 @@ rm -rf ${WORK_DIR}
5656

5757
rpmbuild --define "_topdir ${RPMBUILD_DIR}" -ba "${PACKAGE_SPEC_DIR}/${PACKAGE_NAME}.spec"
5858

59-
TARGET_RPM=`ls ${RPMBUILD_DIR}/RPMS/${PACKAGE_ARCH}/${PACKAGE_NAME}*.rpm`
60-
TARGET_RPM_NAME=`basename ${TARGET_RPM} .rpm`
61-
cp ${TARGET_RPM} ./${TARGET_RPM_NAME}-${PACKAGE_OS}.rpm
59+
cp ${RPMBUILD_DIR}/RPMS/${PACKAGE_ARCH}/${PACKAGE_NAME}*.rpm .

0 commit comments

Comments
 (0)