Padavan_4.4_kernal_toolchain #1
This file contains 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: Padavan_4.4_kernal_toolchain | |
on: | |
workflow_dispatch: | |
env: | |
SRC_DIR: /opt/rt-n56u | |
TC_DIR: /opt/rt-n56u/toolchain | |
CT_URL: https://github.com/vipshmily/padavan-4.4.git | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: [mipsel-linux-uclibc-gcc7, mipsel-linux-musl-gcc7, mipsel-linux-uclibc-gcc10, mipsel-linux-musl-gcc10, mipsel-linux-uclibc-gcc11, mipsel-linux-musl-gcc11, mipsel-linux-uclibc-gcc12, mipsel-linux-musl-gcc12, mipsel-linux-uclibc-gcc13, mipsel-linux-musl-gcc13] | |
steps: | |
- uses: actions/checkout@main | |
- name: Prepare environment | |
run: | | |
sudo apt update | |
sudo apt install unzip libtool-bin ccache curl cmake gperf gawk flex bison nano xxd \ | |
fakeroot kmod cpio bc zip git python3-docutils gettext automake autopoint \ | |
texinfo build-essential help2man pkg-config zlib1g-dev libgmp3-dev \ | |
libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev wget libc-dev-bin | |
- name: Clone source code | |
run: | | |
git clone --depth=1 $CT_URL $SRC_DIR | |
- name: Build toolchain | |
run: | | |
cd $TC_DIR | |
sed -i '/cp -f/d' Makefile | |
make CT_TARGET=${CT_TARGET} CT_VERSION=${CT_VERSION} | |
cd crosstool-ng-${CT_VERSION}/toolchain-mipsel | |
tar cJf ../../${CT_TARGET}.tar.xz * | |
env: | |
CT_TARGET: ${{ matrix.target }} | |
CT_VERSION: 1.26.0 | |
working-directory: ${{ env.TC_DIR}} | |
- uses: actions/upload-artifact@main | |
with: | |
name: ${{ matrix.target }} | |
path: ${{ env.TC_DIR}}/${{ matrix.target }}.tar.xz | |
- uses: ncipollo/release-action@main | |
with: | |
tag: toolchain | |
artifacts: ${{ env.TC_DIR}}/${{ matrix.target }}.tar.xz | |
allowUpdates: true | |
omitBodyDuringUpdate: true |