- Extract inline bash script into structured functions
- Add proper error handling with set -euo pipefail
- Improve variable scoping with readonly and local declarations
- Add descriptive function names and comments
- Fix shell quoting and parameter expansion
- Consolidate build logic into reusable functions
- Add proper cleanup of temporary files
- Improve readability and maintainability of the CI script
The refactored script maintains the same functionality while being
more robust and easier to understand.
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>