Skip to content

Commit

Permalink
ci: Add clean linux-6.6 build
Browse files Browse the repository at this point in the history
Add pure linux-6.6 build for test, but using the same defconfig
XuanTie Linux.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
  • Loading branch information
guoren83 committed Feb 26, 2024
1 parent 5fd8d0e commit c3bc77f
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
toolchain_tripe: riscv32-unknown-linux-gnu-
- name: linux-64lp64
toolchain_tripe: riscv64-unknown-linux-gnu-
- name: linux-64lp64-xt
toolchain_tripe: riscv64-unknown-linux-gnu-
- name: linux-64ilp32
toolchain_tripe: riscv64-unknown-elf-
- name: linux-64lp64-xt
toolchain_tripe: riscv64-unknown-linux-gnu-
- name: linux-32ilp32-xt
toolchain_tripe: riscv32-unknown-linux-gnu-

runs-on: ubuntu-22.04
env:
Expand Down Expand Up @@ -68,23 +70,39 @@ jobs:
mv /opt/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.2 /opt/riscv
rm -v ${xt64_toolchain_file_name}
fi
if [ x"${{ matrix.name }}" = x"linux-32ilp32-xt" ]; then
wget ${rv32_toolchain}/${rv32_toolchain_file_name}
tar -xvf ${rv32_toolchain_file_name} -C /opt
rm -v ${rv32_toolchain_file_name}
fi
- name: Compile
run: |
if [ x"${{ matrix.name }}" = x"linux-32ilp32" ]; then
export PATH="/opt/riscv/bin:$PATH"
wget https://github.com/T-head-Semi/linux/archive/ffc253263a1375a65fa6c9f62a893e9767fbebfa.tar.gz -O linux-6.6.tar.gz
tar zxf linux-6.6.tar.gz
cp arch/riscv/configs/defconfig linux-6.6/arch/riscv/configs/defconfig
cd linux-6.6
make ARCH=riscv EXTRA_CFLAGS+=-g rv32_defconfig all INSTALL_MOD_PATH=./modules_install modules_install INSTALL_HDR_PATH=./headers_install headers_install -j$(nproc)
mv arch/riscv/boot/Image ./
cp Documentation/admin-guide/kdump/gdbmacros.txt ./
git log --oneline -500 > git.log
tar czvf ${{ matrix.name }}.tar.gz Image vmlinux git.log modules_install headers_install gdbmacros.txt
tar czvf ${{ matrix.name }}.tar.gz Image vmlinux modules_install headers_install gdbmacros.txt
mv czvf ${{ matrix.name }}.tar.gz ../
cd ..
fi
if [ x"${{ matrix.name }}" = x"linux-64lp64" ]; then
export PATH="/opt/riscv/bin:$PATH"
wget https://github.com/T-head-Semi/linux/archive/ffc253263a1375a65fa6c9f62a893e9767fbebfa.tar.gz -O linux-6.6.tar.gz
tar zxf linux-6.6.tar.gz
cp arch/riscv/configs/defconfig linux-6.6/arch/riscv/configs/defconfig
cd linux-6.6
make ARCH=riscv EXTRA_CFLAGS+=-g defconfig all INSTALL_MOD_PATH=./modules_install modules_install INSTALL_HDR_PATH=./headers_install headers_install -j$(nproc)
mv arch/riscv/boot/Image ./
cp Documentation/admin-guide/kdump/gdbmacros.txt ./
git log --oneline -500 > git.log
tar czvf ${{ matrix.name }}.tar.gz Image vmlinux git.log modules_install headers_install gdbmacros.txt
tar czvf ${{ matrix.name }}.tar.gz Image vmlinux modules_install headers_install gdbmacros.txt
mv czvf ${{ matrix.name }}.tar.gz ../
cd ..
fi
if [ x"${{ matrix.name }}" = x"linux-64ilp32" ]; then
export PATH="/opt/riscv/bin:$PATH"
Expand All @@ -109,6 +127,14 @@ jobs:
git log --oneline -500 > git.log
tar czvf ${{ matrix.name }}.tar.gz Image vmlinux git.log modules_install headers_install gdbmacros.txt
fi
if [ x"${{ matrix.name }}" = x"linux-32ilp32-xt" ]; then
export PATH="/opt/riscv/bin:$PATH"
make ARCH=riscv EXTRA_CFLAGS+=-g rv32_defconfig all INSTALL_MOD_PATH=./modules_install modules_install INSTALL_HDR_PATH=./headers_install headers_install -j$(nproc)
mv arch/riscv/boot/Image ./
cp Documentation/admin-guide/kdump/gdbmacros.txt ./
git log --oneline -500 > git.log
tar czvf ${{ matrix.name }}.tar.gz Image vmlinux git.log modules_install headers_install gdbmacros.txt
fi
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit c3bc77f

Please sign in to comment.