Build sdk #10
Workflow file for this run
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: Build sdk | |
on: [workflow_dispatch] | |
permissions: write-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Initialize environment | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
sudo apt update | |
sudo apt install build-essential clang flex bison g++ gawk gcc-multilib g++-multilib \ | |
gettext git libncurses5-dev libssl-dev python3-distutils rsync unzip zlib1g-dev \ | |
file wget | |
- name: Update feeds | |
run: cd $GITHUB_WORKSPACE && ./scripts/feeds update -a | |
- name: Install feeds | |
run: cd $GITHUB_WORKSPACE && ./scripts/feeds install -a | |
- name: Make defconfig | |
run: | | |
cd $GITHUB_WORKSPACE | |
mv .config-6.1 .config | |
make defconfig | |
- name: Compile tools and toolchain | |
run: | | |
cd $GITHUB_WORKSPACE | |
make -j$(nproc) tools/compile | |
make -j$(nproc) toolchain/compile | |
- name: Compile linux | |
run: | | |
cd $GITHUB_WORKSPACE | |
make -j$(nproc) target/linux/compile V=sc | |
tar -cJf sdk.tar.xz build_dir staging_dir | |
- name: Upload directories | |
uses: actions/upload-artifact@main | |
with: | |
name: build_upload | |
path: | | |
sdk.tar.xz | |
- name: Upload files | |
uses: maggie44/actions/packages/automatic-releases@built-packages | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: sdk-latest | |
prerelease: false | |
title: Latest sdk | |
files: | | |
sdk.tar.xz |