mirror of https://github.com/rusefi/rusefi.git
only: shared_io.resources
This commit is contained in:
parent
5a052f1924
commit
e83ec13d83
|
@ -143,6 +143,10 @@ runs:
|
||||||
echo "SIM_OUTPUT_ROOT_FOLDER=$(realpath --relative-to=${{inputs.rusefi_dir}}/firmware ${{inputs.sim_output}})/" >> $GITHUB_ENV
|
echo "SIM_OUTPUT_ROOT_FOLDER=$(realpath --relative-to=${{inputs.rusefi_dir}}/firmware ${{inputs.sim_output}})/" >> $GITHUB_ENV
|
||||||
source ${{inputs.rusefi_dir}}/firmware/config/boards/common_script_read_meta_env.inc "${{inputs.meta_info}}"
|
source ${{inputs.rusefi_dir}}/firmware/config/boards/common_script_read_meta_env.inc "${{inputs.meta_info}}"
|
||||||
cd ${{inputs.rusefi_dir}}/firmware
|
cd ${{inputs.rusefi_dir}}/firmware
|
||||||
|
ABSOLUTE_BOARD_DIR=${{github.workspace}}/$BOARD_DIR
|
||||||
|
# sometimes absolute path is simpler
|
||||||
|
echo "ABSOLUTE_BOARD_DIR=$ABSOLUTE_BOARD_DIR" >> $GITHUB_ENV
|
||||||
|
# todo: why do we require relative path exactly?
|
||||||
BOARD_DIR=$(realpath --relative-to=. "${{github.workspace}}/$BOARD_DIR")
|
BOARD_DIR=$(realpath --relative-to=. "${{github.workspace}}/$BOARD_DIR")
|
||||||
BOARD_META_PATH=$(realpath --relative-to=. "${{github.workspace}}/$BOARD_META_PATH")
|
BOARD_META_PATH=$(realpath --relative-to=. "${{github.workspace}}/$BOARD_META_PATH")
|
||||||
echo "BOARD_DIR=$BOARD_DIR" >> $GITHUB_ENV
|
echo "BOARD_DIR=$BOARD_DIR" >> $GITHUB_ENV
|
||||||
|
|
|
@ -1,8 +1,25 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: '../../android/dependencies.gradle'
|
apply from: '../../android/dependencies.gradle'
|
||||||
|
|
||||||
|
java {
|
||||||
|
var boardDir = System.getenv("ABSOLUTE_BOARD_DIR")
|
||||||
|
println("gradle says: ABSOLUTE_BOARD_DIR=" + boardDir)
|
||||||
|
if (boardDir != null) {
|
||||||
|
var customResourcesFolder = boardDir + "/shared_io.resources"
|
||||||
|
if (new File(customResourcesFolder).exists()) {
|
||||||
|
println(customResourcesFolder + " found!")
|
||||||
|
processResources {
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||||
|
from(customResourcesFolder)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
println(customResourcesFolder + " not found.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: rename folder to core_io
|
// TODO: rename folder to core_io
|
||||||
// this CORE module cannot depend on model/ini!
|
// this CORE module cannot depend on model/ini!
|
||||||
|
|
Loading…
Reference in New Issue