Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add virtio-snd building #87

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
run: |
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
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- 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 Expand Up @@ -71,6 +75,10 @@ jobs:
run: |
wget https://github.com/seL4/microkit/releases/download/1.4.1/microkit-sdk-1.4.1-macos-x86-64.tar.gz
tar xf microkit-sdk-1.4.1-macos-x86-64.tar.gz
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Install dependencies (via Homebrew)
# 'expect' is only a dependency for CI testing
run: |
Expand Down
22 changes: 22 additions & 0 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} \
MICROKIT_CONFIG=${CONFIG} \
MICROKIT_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 @@ -156,5 +173,10 @@ build_virtio "qemu_virt_aarch64" "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"
Loading