Skip to content

Commit

Permalink
workflows: build: remove build-c4c-misc job
Browse files Browse the repository at this point in the history
Remove the build-c4c-misc job from the workflow as those have been
inconsistent with mirrors not being available. These builds are now
tested internally using private github runners and local storage.

Signed-off-by: James Hershaw <[email protected]>
Signed-off-by: Louis Peens <[email protected]>
  • Loading branch information
jamesroberthershaw authored and louis-peens committed Apr 5, 2024
1 parent 4a05860 commit 565bda2
Showing 1 changed file with 0 additions and 167 deletions.
167 changes: 0 additions & 167 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,173 +241,6 @@ jobs:
with:
search-path: "${{ env.UNPACKED }}/usr/src/kernels"

build-c4c-misc:
name: 'Build-C4C-MISC: ${{matrix.release.name}}'
runs-on: ubuntu-20.04
timeout-minutes: 90
env:
KVER: "*"
strategy:
matrix:
release: [
# openEuler
{ "name": "openEuler-20.03-LTS", "container": "openeuler/openeuler:22.03-lts" },
{ "name": "openEuler-22.03-LTS", "container": "openeuler/openeuler:22.03-lts" },
# BCLinux
#{ "name": "el8", "container": "rockylinux:8.5" },
#{ "name": "el8.1", "container": "rockylinux:8.5" },
#{ "name": "el8.2", "container": "rockylinux:8.5" },
# Kylin V10
{ "name": "V10SP1", "container": "rockylinux:8.5" },
{ "name": "V10SP2", "container": "rockylinux:8.5" },
{ "name": "V10SP3", "container": "rockylinux:8.5" },
# OpenCloud
{ "name": "opencloudos/8.5", "container": "rockylinux:8.5" },
{ "name": "opencloudos/8.6", "container": "rockylinux:8.5" },
{ "name": "opencloudos/9.0", "container": "opencloudos/opencloudos:9.0" },
# Anolis
{ "name": "anolis/7.9", "container": "openanolis/anolisos:7.9-x86_64" },
{ "name": "anolis/8.6", "container": "openanolis/anolisos:8.6" },
{ "name": "anolis/8.8", "container": "openanolis/anolisos:8.8" },
]
container:
image: ${{ matrix.release.container }}
steps:
- name: Set Download Environment
env:
RELEASE_NAME: ${{ matrix.release.name }}
run: |
case $RELEASE_NAME in
el8*) MIRROR="mirrors.bclinux.org/bclinux" ;;
openEuler*) MIRROR="mirrors.dotsrc.org/openeuler" ;;
V10*) MIRROR="update.cs2c.com.cn/NS/V10" ;;
opencloud*) MIRROR="mirrors.opencloudos.org" ;;
anolis*) MIRROR="mirrors.openanolis.cn" ;;
esac
case $RELEASE_NAME in
el8*|8.[2-6])
OS_DIR1="BaseOS"
OS_DIR2="os"
;;
openEuler*)
OS_DIR1="OS"
OS_DIR2=""
;;
V10*)
OS_DIR1="os/adv/lic/base"
OS_DIR2=""
;;
anolis/7.9)
OS_DIR1="os"
OS_DIR2="os"
;;
anolis/8.6)
OS_DIR1="BaseOS"
OS_DIR2="os"
;;
anolis/8.8)
OS_DIR1="kernel-5.10"
OS_DIR2="os"
;;
opencloudos/8*)
OS_DIR1="BaseOS"
OS_DIR2="os"
;;
opencloudos/9*)
OS_DIR1="AppStream"
OS_DIR2="os"
;;
esac
OS_PATH="$MIRROR/$RELEASE_NAME/$OS_DIR1/x86_64/$OS_DIR2/Packages/"
echo "OS_PATH=$OS_PATH" >> $GITHUB_ENV
- name: Cache OS Kernel Header Packages
uses: actions/cache@v3
env:
cache-name: cache-os-headers
with:
path: ${{ env.DOWNLOAD }}/${{ env.OS_PATH }}
key: ${{ env.cache-name }}-${{ matrix.release.name }}-v1

- name: Update OpenEuler mirror
if: startsWith(matrix.release.name, 'openEuler')
run: sed -i 's|repo.openeuler.org|mirrors.dotsrc.org/openeuler|g' /etc/yum.repos.d/openEuler.repo

- name: Install Dependencies
run: yum -q -y install cpio elfutils-libelf-devel findutils gcc make wget ca-certificates tar gzip hostname

- name: Check out repository
uses: actions/checkout@v3

- name: Filter latest BCLinux stream kernel
if: startsWith(matrix.release.name, 'el8')
run: |
for i in $(curl -s "http://${{ env.OS_PATH }}/" | \
grep -o -E "kernel-devel-4.19.0-([0-9]|.){1,12}.el8([0-9]|_){0,9}.bclinux.x86_64.rpm")
do
var=${i%.el8*}
var=${var#*4.19.0-}
array[${#array[@]}]=$var
done
for((i=0;i<${#array[@]}-1;i++))
do
ver1=${array[$i]}
ver2=${array[$((i+1))]}
if [ ${ver1%%.*} -gt ${ver2%%.*} ];then
array[$((i+1))]=${array[$i]}
else
ver1=${ver1#*.}
ver2=${ver2#*.}
if [ ${ver1%%.*} -gt ${ver2%%.*} ];then
array[$((i+1))]=${array[$i]}
else
ver1=${ver1#*.}
ver2=${ver2#*.}
if [ ${ver1%%.*} -gt ${ver2%%.*} ];then
array[$((i+1))]=${array[$i]}
fi
fi
fi
done
KVER="4.19.0-"${array[((${#array[@]}-1))]}
echo $KVER
echo "KVER=${KVER}*" >> $GITHUB_ENV
- name: Filter latest openEuler kernel
if: startsWith(matrix.release.name, 'openEuler')
run: |
if [ ${{ contains(matrix.release.name, '20') }} ]; then
KVER=$(curl -s "http://${{ env.OS_PATH }}/" | \
sed -En 's/.*kernel-devel-(4.19.90-[0-9].*).oe1.*rpm.*/\1/p' | \
tail -n 1)
elif [ ${{ contains(matrix.release.name, '22') }} ]; then
KVER=$(curl -s "http://${{ env.OS_PATH }}/" | \
sed -En 's/.*kernel-devel-(5.10.0-[0-9].*).oe2203.*rpm.*/\1/p' | \
tail -n 1)
fi
echo $KVER
echo "KVER=${KVER}*" >> $GITHUB_ENV
- name: Download OS Kernel Header Packages
uses: ./.github/actions/download
with:
output-path: ${{ env.DOWNLOAD }}
url: "http://${{ env.OS_PATH }}"
accept: "kernel-devel-${{ env.KVER }}.rpm"

- name: Unpack Kernel Headers
uses: ./.github/actions/unpack-rpm
with:
input-path: ${{ env.DOWNLOAD }}
output-path: ${{ env.UNPACKED }}

- name: Build
uses: ./.github/actions/build
with:
search-path: "${{ env.UNPACKED }}/usr/src/kernels"

build-upstream-ubuntu:
name: 'Build-Upstream: ${{matrix.release.name}}'
runs-on: ubuntu-${{ matrix.release.runs-on }}
Expand Down

0 comments on commit 565bda2

Please sign in to comment.