Skip to content

Commit

Permalink
ci: add k230 ilp32 kernel build
Browse files Browse the repository at this point in the history
add k230 ilp32 kernel build

Signed-off-by: Han Gao <[email protected]>
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR committed Jun 27, 2024
1 parent 1d79908 commit d543329
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/k230.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
xt64_toolchain_file_name: Xuantie-900-gcc-linux-6.6.0-glibc-x86_64-V2.10.0-20240419.tar.gz
rv64_toolchain: https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2024.04.12
rv64_toolchain_file_name: riscv64-glibc-ubuntu-22.04-gcc-nightly-2024.04.12-nightly.tar.gz
rv64ilp32_toolchain: https://github.com/ruyisdk/riscv-gnu-toolchain-rv64ilp32/releases/download/2024.06.25
rv64ilp32_toolchain_file_name: riscv64ilp32-elf-ubuntu-22.04-gcc-nightly-2024.06.25-nightly.tar.gz
ARCH: riscv
KBUILD_BUILD_USER: builder
KBUILD_BUILD_HOST: ci-riscv-builder
Expand All @@ -28,6 +30,8 @@ jobs:
toolchain_tripe: riscv64-unknown-linux-gnu-
- name: linux-64lp64
toolchain_tripe: riscv64-unknown-linux-gnu-
- name: linux-64ilp32
toolchain_tripe: riscv64-unknown-elf-

runs-on: ubuntu-22.04
env:
Expand Down Expand Up @@ -59,6 +63,11 @@ jobs:
tar -xvf ${xt64_toolchain_file_name} -C /opt
rm -v ${xt64_toolchain_file_name}
fi
if [ x"${{ matrix.name }}" = x"linux-64ilp32" ]; then
wget ${rv64ilp32_toolchain}/${rv64ilp32_toolchain_file_name}
tar -xvf ${rv64ilp32_toolchain_file_name} -C /opt
rm -v ${rv64ilp32_toolchain_file_name}
fi
- name: Compile
run: |
Expand All @@ -69,8 +78,15 @@ jobs:
if [ x"${{ matrix.name }}" = x"linux-64lp64-xt" ]; then
export PATH="/opt/Xuantie-900-gcc-linux-6.6.0-glibc-x86_64-V2.10.0/bin:$PATH"
fi
if [ x"${{ matrix.name }}" = x"linux-64ilp32" ]; then
export PATH="/opt/riscv/bin:$PATH"
fi
pushd kernel
make k230_defconfig
if [ x"${{ matrix.name }}" = x"linux-64ilp32" ]; then
rm .config
make k230_defconfig 64ilp32.config
fi
export KDEB_PKGVERSION="$(make kernelversion)-$(date "+%Y.%m.%d.%H.%M")+$(git rev-parse --short HEAD)"
make -j$(nproc) bindeb-pkg
dcmd cp -v ../*.changes ${GITHUB_WORKSPACE}/artifact
Expand Down

0 comments on commit d543329

Please sign in to comment.