Skip to content

Commit

Permalink
github actions: don't call ./bootstrap-rootfs.sh in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
sylirre committed Dec 17, 2023
1 parent 001b004 commit 7bb3d7d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@ jobs:
run: sudo apt-get update && sudo apt-get install -yq curl debian-archive-keyring jq mmdebstrap qemu-user-static binfmt-support multistrap
- name: Build distribution rootfs
run: |
for distros_to_be_built in $(cat ./distributions.txt); do
# check if a specified distribution build recipe exists incase for workflow dispatch inputs
if [ ! -f ./distro-build/${distros_to_be_built}.sh ]; then
echo "Cannot build distribution ${distros_to_be_built}: no such file or directory"
distros_to_be_built=$(cat ./distributions.txt)
for d in ${distros_to_be_built}; do
# check if a specified distribution build recipe exists in case for workflow dispatch inputs
if [ ! -f ./distro-build/${d}.sh ]; then
echo "Cannot build distribution ${d}: ./distro-build/${d}.sh: no such file exist"
exit 2
fi
./bootstrap-rootfs.sh ${distros_to_be_built}
done
./bootstrap-rootfs.sh ${distros_to_be_built}
# Upload Artifacts separately per architecture
- name: Upload Artifacts (aarch64)
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 7bb3d7d

Please sign in to comment.