Just testing #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CLK Rebase | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - clk-rebase-ga | |
| jobs: | |
| clk-rebase: | |
| runs-on: kernel-build | |
| container: | |
| image: rockylinux:9.2 | |
| options: --cpus 8 --privileged | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Perform CLK Rebase | |
| run: | | |
| CLK_BRANCH=ciq-6.12.y | |
| CLK_NEXT_BRANCH=ciq-6.12.y-next | |
| TMP_CLK_NEXT_BRANCH={automation}_ciq-6.12.y-next | |
| STABLE_TRACKING_BRANCH=stable_6.12.y | |
| dnf install epel-release -y | |
| dnf install procps-ng -y | |
| free -h | |
| dnf install qemu-kvm virtme-ng -y | |
| dnf groupinstall 'Development Tools' -y | |
| dnf install --enablerepo=crb bc dwarves iproute kernel-devel openssl-devel elfutils-libelf-devel -y | |
| WORKDIR=clk-rebase-$(date '+%Y_%m_%d__%H_%M_%S') | |
| mkdir $WORKDIR | |
| pushd $WORKDIR | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "Brett Mastbergen" | |
| git clone https://oauth2:[email protected]/ctrliq/kernel-src-tree-tools | |
| # HACK HACK HACK | |
| git -C kernel-src-tree-tools checkout normalize-rustc-during-lt_rebase | |
| git clone https://oauth2:[email protected]/ctrliq/kernel-src-tree | |
| pushd kernel-src-tree | |
| git checkout $STABLE_TRACKING_BRANCH | |
| git checkout $CLK_BRANCH | |
| ../kernel-src-tree-tools/lt_rebase.sh | |
| vng -b --config ciq/configs/kernel-x86_64.config --verbose | tee ../build.log | |
| # HACK HACK HACK | |
| sed -i 's/sudo//g' ../kernel-src-tree-tools/kernel_kselftest.sh | |
| dnf install curl --allowerasing -y | |
| # should be installed in kernel_kselftest.sh | |
| dnf install conntrack-tools e2fsprogs ethtool iptables iputils ipvsadm kernel-tools nftables teamd traceroute -y | |
| vng --qemu /usr/libexec/qemu-kvm --force-initramfs --disable-microvm --rw --network user --verbose --memory 16G -- ../kernel-src-tree-tools/kernel_kselftest.sh | |
| echo "Selftests passed:" | |
| grep -a ^ok ../kselftest-logs/selftest* | wc -l | |
| popd | |
| popd | |
| - name: Upload selftest logs | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: kselftest-logs | |
| path: clk-rebase-*/kselftest-logs/selftest* | |
| if-no-files-found: warn | |