archives/build.sh
TheBrokenRail dc06934a08
All checks were successful
CI / Build (push) Successful in 2h15m52s
It Better Work This Time
2025-03-20 21:14:57 -04:00

21 lines
346 B
Bash
Executable File

#!/bin/sh
set -e
# Store Output
OUT="$(pwd)/out"
find "${OUT}" -type f -delete
# Build
cd workspace/build
for type in *; do
cd "${type}"
../../crosstool-ng/ct-ng build
# Compress
NAME="arm-toolchain-${type}"
mv out "${NAME}"
tar -cJf "${OUT}/${NAME}.tar.xz" "${NAME}"
# Clean Up
rm -rf "${NAME}"
cd ../
done