Skip to content

Commit

Permalink
ERL-467: github: workflows: nemos-images: build development profile
Browse files Browse the repository at this point in the history
If building a "reference" image, we want to use the development profile
in order to include all snaps.

Signed-off-by: Isaac True <[email protected]>
  • Loading branch information
IsaacJT committed Nov 22, 2023
1 parent 5b40ccc commit 0a8a6fd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/nemos-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,18 @@ jobs:
BUILD_DIR="$(mktemp -d)"
# If we are building for amd64, then we can build natively. Otherwise,
# we need to use the Kiwi boxbuild plugin to build in a VM
if [ "${{ matrix.config }}" = "reference" ]; then
PROFILE="development"
else
PROFILE="bootstrapped"
fi
if [ "${{ matrix.arch }}" = "amd64" ]; then
sudo kiwi-ng --debug --profile bootstrapped \
sudo kiwi-ng --debug --profile "${PROFILE}" \
--config nemos-images-${{ matrix.config }}-${{ matrix.series }}/kiwi.yaml \
system build --target-dir "${BUILD_DIR}" \
--description nemos-images-${{ matrix.config }}-${{ matrix.series }}/qemu-${{ matrix.arch}}/
else
sudo kiwi-ng --debug --profile bootstrapped \
sudo kiwi-ng --debug --profile "${PROFILE}" \
system boxbuild \
--box ubuntu --aarch64 --machine=virt --no-accel --cpu cortex-a53 \
--box-memory=$(( 2 * 1024 )) --box-smp-cpus=2 -- \
Expand Down

0 comments on commit 0a8a6fd

Please sign in to comment.