This repository was archived by the owner on May 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66# Blog: https://p3terx.com
77# =================================================
88
9- name : Build Raspberry Pi 4 OpenWrt
9+ name : Test Raspberry Pi 4 OpenWrt
1010
1111on :
1212 workflow_dispatch :
@@ -115,20 +115,15 @@ jobs:
115115 id : make-env
116116 run : |
117117 cd $OPENWRTROOT
118- make diffconfig
119- cd $OPENWRTROOT/bin/packages/*
120- PLATFORM=$(basename `pwd`)
121- echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV
122- echo "::set-output name=PLATFORM::$(echo $PLATFORM)"
123- cd $OPENWRTROOT/bin/targets/*
124- TARGET=$(basename `pwd`)
118+ export TARGET=$(cat .config | grep CONFIG_TARGET_BOARD | awk -F '"' '{print $2}')
125119 echo "TARGET=$TARGET" >> $GITHUB_ENV
126120 echo "::set-output name=TARGET::$(echo $TARGET)"
127- cd *
128- SUBTARGET=$(basename `pwd`)
121+ export SUBTARGET=$(cat .config | grep CONFIG_TARGET_SUBTARGET | awk -F '"' '{print $2}')
129122 echo "SUBTARGET=$SUBTARGET" >> $GITHUB_ENV
130123 echo "::set-output name=SUBTARGET::$(echo $SUBTARGET)"
131- cd $OPENWRTROOT
124+ export PLATFORM=$(cat .config | grep CONFIG_TARGET_ARCH_PACKAGES | awk -F '"' '{print $2}')
125+ echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV
126+ echo "::set-output name=PLATFORM::$(echo $PLATFORM)"
132127 rm -rf .config dl bin
133128
134129 - name : Generate Toolchain Image
You can’t perform that action at this time.
0 commit comments