Skip to content
Merged
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
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,36 @@ jobs:
test -n "$endpoint"
VXVHAL_TEST_DATABROKER="$endpoint" cargo test --locked --test databroker

container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.99.1
with:
targets: x86_64-unknown-linux-musl
- name: Install protoc and the musl C compiler
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler musl-tools
- uses: Swatinem/rust-cache@v2
- name: Build static payload
env:
CC_x86_64_unknown_linux_musl: musl-gcc
run: cargo build --locked --release --target x86_64-unknown-linux-musl
- name: Build and smoke-test the OCI image
run: |
podman build --tag vxvhal-ci --file Containerfile .
container=$(podman run --detach --network none vxvhal-ci)
trap 'podman logs "$container"; podman rm --force "$container" >/dev/null' EXIT
for attempt in {1..20}; do
test "$(podman inspect --format '{{.State.Running}}' "$container")" = true
if podman logs "$container" 2>&1 | grep -F 'vxvhal serving' >/dev/null; then
podman stop --time 5 "$container"
test "$(podman inspect --format '{{.State.ExitCode}}' "$container")" = 0
exit 0
fi
sleep 0.5
done
exit 1

deny:
runs-on: ubuntu-latest
steps:
Expand Down
Loading
Loading