Skip to content

Commit

Permalink
ci: add virtio-snd building
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Velickovic <[email protected]>
  • Loading branch information
Ivan-Velickovic committed Jul 15, 2024
1 parent d67d8f7 commit 820b879
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ci/examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,23 @@ build_virtio() {
MICROKIT_SDK=${SDK_PATH}
}

build_virtio() {
BOARD=$1
CONFIG=$2
echo "CI|INFO: building virtio sound example via Make with board: $BOARD and config: $CONFIG"
BUILD_DIR="${PWD}/build/examples/virtio-snd/make/${BOARD}/${CONFIG}"
mkdir -p ${BUILD_DIR}
cd examples/virtio-snd
nix-shell
make -C examples/virtio-snd -B \
BUILD_DIR=${BUILD_DIR} \
CONFIG=${CONFIG} \
BOARD=${BOARD} \
MICROKIT_SDK=${SDK_PATH}
exit
cd ..
}

simulate_zig() {
echo "CI|INFO: simulating Zig example with config: $1"
BUILD_DIR="${PWD}/build/examples/zig/qemu_arm_virt/${CONFIG}/${ZIG_OPTIMIZE}"
Expand Down Expand Up @@ -156,6 +173,11 @@ build_virtio "qemu_arm_virt" "release"
build_virtio "odroidc4" "debug"
build_virtio "odroidc4" "release"

build_virtio_snd "qemu_arm_virt" "debug"
build_virtio_snd "qemu_arm_virt" "release"
build_virtio_snd "odroidc4" "debug"
build_virtio_snd "odroidc4" "release"

fi

echo ""
Expand Down

0 comments on commit 820b879

Please sign in to comment.