cci improvements and change nightly build number to actual date (#824)

ie. aredn-20230505-commit_id-xxxxx-yyy.bin
This commit is contained in:
dman776 2023-05-05 20:20:29 -05:00 committed by GitHub
parent c991ea4ea1
commit 5f19a7d090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 18 deletions

View File

@ -9,6 +9,22 @@ parameters:
enum: [no_action, nightly_build, manual_build, release_build]
default: no_action
######################################
# REUSABLE COMMANDS
######################################
commands:
update_config_mk:
description: "Update variables in config.mk"
steps:
- run:
name: Update Config.mk
command: |
export MY_WORKING_DIRECTORY=`pwd`
printf -v BUILD_DATE '%(%Y%m%d)T' -1
sed -i "s/NoCall/${BUILD_DATE}/g" ${MY_WORKING_DIRECTORY}/config.mk
sed -i "s/MAKE_ARGS=-j3/MAKE_ARGS=-j${DASH_J_VALUE}/g" ${MY_WORKING_DIRECTORY}/config.mk
cat ${MY_WORKING_DIRECTORY}/config.mk
######################################
# JOBS
######################################
@ -20,46 +36,37 @@ jobs:
steps:
- checkout
- update_config_mk
- run:
name: Update Config.mk
command: |
export MY_WORKING_DIRECTORY=`pwd`
export MY_PROCS=`nproc`
echo "#Procs: ${MY_PROCS}, DASH_J_VALUE: ${DASH_J_VALUE}"
sed -i "s/NoCall/${CIRCLE_BUILD_NUM}/g" ${MY_WORKING_DIRECTORY}/config.mk
sed -i "s/MAKE_ARGS=-j3/MAKE_ARGS=-j${DASH_J_VALUE}/g" ${MY_WORKING_DIRECTORY}/config.mk
cat ${MY_WORKING_DIRECTORY}/config.mk
echo "${TARGET_DIR}"
- run:
name: Build
name: Build ath79/generic
command: make MAINTARGET=ath79 SUBTARGET=generic
no_output_timeout: 2h
- run:
name: Build
name: Build ath79/tiny
command: make MAINTARGET=ath79 SUBTARGET=tiny
no_output_timeout: 1h
- run:
name: Build
name: Build ath79/mikrotik
command: make MAINTARGET=ath79 SUBTARGET=mikrotik
no_output_timeout: 1h
- run:
name: Build
name: Build ath79/mikrotik/ath10k
command: make MAINTARGET=ath79 SUBTARGET=mikrotik ALTTARGET=ath10k
no_output_timeout: 1h
- run:
name: Build
name: Build ath79/mikrotik/nand
command: make MAINTARGET=ath79 SUBTARGET=mikrotik ALTTARGET=nand
no_output_timeout: 1h
- run:
name: Build
name: Build ath79/nand
command: make MAINTARGET=ath79 SUBTARGET=nand
no_output_timeout: 1h
- run:
name: Build
name: Build ipq40xx/mikrotik
command: make MAINTARGET=ipq40xx SUBTARGET=mikrotik
no_output_timeout: 2h
- run:
name: Build
name: Build x64/64
command: make MAINTARGET=x86 SUBTARGET=64
no_output_timeout: 2h
- run: