feature/ci-cd-drone-migration #3

Merged
t3hn3rd merged 21 commits from feature/ci-cd-drone-migration into develop 2025-03-09 22:32:17 +00:00
2 changed files with 16 additions and 16 deletions
Showing only changes of commit f0dc598f44 - Show all commits

View File

@ -20,26 +20,28 @@ runOrFail() {
fi
}
runOrFail $(pwd)/compile_stub.sh "Failed to compile stub!"
declare -a run_steps=(
'compile_stub.sh "Failed to compile stub!"'
'compile_vergen.sh "Versions failed to compile"'
'compile_sources.sh "Failed to compile FPC Sources!"'
'compile_link.sh "Failed linking!"'
'compile_isogen.sh "Failed to create ISO!"'
)
#Generate .pas with versioning headers.
runOrFail $(pwd)/compile_vergen.sh "Versions failed to compile"
#Compile all .pas sources
runOrFail $(pwd)/compile_sources.sh "Failed to compile FPC Sources!"
#Link into a binary.
runOrFail $(pwd)/compile_link.sh "Failed linking!"
#Generate an ISO with GRUB as the Bootloader.
runOrFail ./compile_isogen.sh "Failed to create ISO!"
for command in "${run_steps[@]}"
do
if [ "$ERRCOUNT" -eq "0" ]
then
runOrFail $(pwd)/$command
fi
done
#Call generate final artifacts based on failure or success of the above.
if [ "$ERRCOUNT" -ne "0" ]
then
./compile_finish.sh "failed"
. ./compile_finish.sh "failed"
else
./compile_finish.sh "success"
. ./compile_finish.sh "success"
fi
cd ..

View File

@ -14,8 +14,6 @@ file="version"
wget -q https://raw.githubusercontent.com/fsaintjacques/semver-tool/master/src/semver -O bin/semver && chmod +x bin/semver
export PATH="$(pwd)/bin:$PATH"
}
pwd
ls
tagref=$(git describe --tags)
revision=$(git rev-parse --short=8 HEAD)
major=$(semver get major $tagref)