Padavan_3.4_kernal_toolchain1 #9
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_3.4_kernal_toolchain1 | |
on: | |
# release: | |
# types: [published] | |
# push: | |
# tags: | |
# - 'v*' | |
workflow_dispatch: | |
watch: | |
types: [started] | |
env: | |
src_dir: /opt/rt-n56u | |
build_dir: /opt/rt-n56u/toolchain-mipsel | |
toolchain_dir: /opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x | |
src_git: https://github.com/vipshmily/Padavan-3.4-KVR.git | |
jobs: | |
build: | |
name: Build Padavan toolchain | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Prepare environment | |
run: | | |
sudo apt update | |
sudo apt install unzip libtool-bin curl cmake gperf gawk flex bison nano xxd \ | |
fakeroot kmod cpio 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 $src_git $src_dir | |
- name: Build toolchain | |
run: | | |
cd $src_dir | |
sed -i '/cp -f/d' Makefile | |
make toolchain/build | |
cd $toolchain_dir | |
tar cJf ../mipsel-linux-uclibc.tar.xz * | |
- uses: actions/upload-artifact@main | |
with: | |
name: toolchain | |
path: ${{ env.build_dir }}/mipsel-linux-uclibc.tar.xz | |
- uses: svenstaro/upload-release-action@master | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ env.build_dir }}/mipsel-linux-uclibc.tar.xz | |
tag: toolchain | |
overwrite: true |