Skip to content

Commit 62e9be6

Browse files
committed
build: & functions: Add SWITCH KERNEL, clean stable/beta
1 parent a61dcd6 commit 62e9be6

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/build-openwrt.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -391,24 +391,21 @@ jobs:
391391
source "$GITHUB_WORKSPACE"/scripts/$FUNCTIONS_SH
392392
SMART_CHMOD
393393
### ----------------------------------------------------------------- ###
394+
### [ BETA BRANCH ]
394395
- name: Branch Beta
395396
working-directory: '/workdir/openwrt'
396397
if: env.DEFAULT_BRANCH == env.BRANCH_BETA && !cancelled()
397398
run: |
398-
echo "Success"
399-
echo "Default Branch is: $DEFAULT_BRANCH"
400-
echo "BETA: $BRANCH_BETA"
401-
echo "STABLE: $BRANCH_STABLE"
402399
sed -i 's/BRANCH="stable"/BRANCH="$DEFAULT_BRANCH"/g' "$GITHUB_WORKSPACE"/openwrt/files/etc/rc.d/S99kmods
403400
### ----------------------------------------------------------------- ###
401+
### [ STABLE BRANCH ]
404402
- name: Branch Stable
405403
working-directory: '/workdir/openwrt'
406404
if: env.DEFAULT_BRANCH == env.BRANCH_STABLE && !cancelled()
407405
run: |
408-
echo "Success"
409-
echo "Default Branch is: $DEFAULT_BRANCH"
410-
echo "BETA: $BRANCH_BETA"
411-
echo "STABLE: $BRANCH_STABLE"
406+
chmod +x "$GITHUB_WORKSPACE"/scripts/$FUNCTIONS_SH
407+
source "$GITHUB_WORKSPACE"/scripts/$FUNCTIONS_SH
408+
SWITCH_KERNEL
412409
sed -i 's/BRANCH="beta"/BRANCH="$DEFAULT_BRANCH"/g' "$GITHUB_WORKSPACE"/openwrt/files/etc/rc.d/S99kmods
413410
### ----------------------------------------------------------------- ###
414411
- name: Cache Key Get/Check

scripts/functions.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Updated By Eliminater74 03/20/2022
1111
##########################################################################################
1212
### ---------------------------------------------------------------------------------- ###
13-
### [MAKE SURE YOU KNOW WHAT YOUR DOING BEFORE CHANGING ALL THIS] ###
13+
### [MAKE SURE YOU KNOW WHAT YOUR DOING BEFORE CHANGING ALL THIS] BRANCH="beta" ###
1414
### ---------------------------------------------------------------------------------- ###
1515
##########################################################################################
1616
echo "Loading Functions into Memory.."
@@ -158,6 +158,11 @@ CCACHE_CONFIG_SETUP() {
158158
printf 'CONFIG_CCACHE=y\n' >> .config
159159
}
160160

161+
SWITCH_KERNEL() {
162+
echo "Switching to 5.10 Kernel."
163+
printf 'CONFIG_TESTING_KERNEL=n\n' >> .config
164+
}
165+
161166
### Not even sure why I still have this here, I dont really use it
162167
CACHE_DIRECTORY_SETUP() {
163168
if [ ! -d '../staging_dir' ]; then

0 commit comments

Comments
 (0)