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 Aug 21, 2024
1 parent 9c35891 commit be1e34c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,17 @@ jobs:
submodules: 'true'
- name: Download Microkit SDK
run: |
<<<<<<< Updated upstream
wget https://github.com/seL4/microkit/releases/download/1.4.1/microkit-sdk-1.4.1-linux-x86-64.tar.gz
tar xf microkit-sdk-1.4.1-linux-x86-64.tar.gz
=======
wget https://github.com/seL4/microkit/releases/download/1.4.0/microkit-sdk-1.4.0-linux-x86-64.tar.gz
tar xf microkit-sdk-1.4.0-linux-x86-64.tar.gz
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
>>>>>>> Stashed changes
- name: Install dependencies (via apt)
# 'expect' is only a dependency for CI testing
run: sudo apt update && sudo apt install -y make clang lld llvm qemu-system-arm device-tree-compiler expect gcc-aarch64-linux-gnu
Expand Down
26 changes: 24 additions & 2 deletions ci/examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,23 @@ build_virtio() {
MICROKIT_SDK=${SDK_PATH}
}

build_virtio_snd() {
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}
pushd examples/virtio-snd
nix-shell
make -B \
BUILD_DIR=${BUILD_DIR} \
CONFIG=${CONFIG} \
BOARD=${BOARD} \
MICROKIT_SDK=${SDK_PATH}
exit
popd
}

simulate_zig() {
echo "CI|INFO: simulating Zig example with config: $1"
BUILD_DIR="${PWD}/build/examples/zig/qemu_virt_aarch64/${CONFIG}/${ZIG_OPTIMIZE}"
Expand Down Expand Up @@ -153,8 +170,13 @@ simulate_zig "release" "ReleaseSmall"

build_virtio "qemu_virt_aarch64" "debug"
build_virtio "qemu_virt_aarch64" "release"
# build_virtio "odroidc4" "debug"
# build_virtio "odroidc4" "release"
build_virtio "odroidc4" "debug"
build_virtio "odroidc4" "release"

build_virtio_snd "qemu_virt_aarch64" "debug"
build_virtio_snd "qemu_virt_aarch64" "release"
build_virtio_snd "odroidc4" "debug"
build_virtio_snd "odroidc4" "release"

echo ""
echo "CI|INFO: Passed all VMM tests"

0 comments on commit be1e34c

Please sign in to comment.