test build foss snapshot image #3
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: test build foss snapshot image | |
on: workflow_dispatch | |
env: | |
scriptpath: "https://raw.githubusercontent.com/arix00/openwrt-mx4300/refs/heads/buildscript" | |
jobs: | |
build: | |
name: build foss snapshot image | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Install packages | |
run: | | |
sudo apt-get update && \ | |
sudo apt-get install -y \ | |
build-essential \ | |
clang \ | |
flex \ | |
bison \ | |
g++ \ | |
gawk \ | |
gcc-multilib \ | |
g++-multilib \ | |
gettext \ | |
git \ | |
libncurses-dev \ | |
libssl-dev \ | |
python3-setuptools \ | |
rsync \ | |
unzip \ | |
zlib1g-dev \ | |
file \ | |
jq \ | |
wget && \ | |
sudo apt-get clean | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: 'mx4300-foss' | |
- name: Update feeds | |
run: scripts/feeds update -a && scripts/feeds install -a | |
- name: Get script | |
run: | | |
wget $SCRIPT_PATH/setenv.sh | |
wget $SCRIPT_PATH/genconfig_foss.sh | |
wget $SCRIPT_PATH/release_foss.sh | |
- name: Generate config | |
run: sh genconfig_foss.sh snapshot | |
- name: Build firmware images | |
run: make -j$(($(nproc)+1)) world | |
- name: Check build version | |
run: cat `find staging_dir -name banner` | |
- name: Prepare release | |
run: sh release_foss.sh ${{ env.ver }} |