Look for vsock_loopback #845
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
soundness: | |
name: Soundness | |
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main | |
with: | |
license_header_check_project_name: "SwiftNIO" | |
unit-tests: | |
name: Unit tests | |
# Workaround https://github.com/nektos/act/issues/1875 | |
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main | |
with: | |
linux_5_9_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" | |
linux_5_10_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error" | |
linux_6_0_arguments_override: "--explicit-target-dependency-import-check error" | |
linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error" | |
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" | |
benchmarks: | |
name: Benchmarks | |
# Workaround https://github.com/nektos/act/issues/1875 | |
uses: apple/swift-nio/.github/workflows/benchmarks.yml@main | |
with: | |
benchmark_package_path: "Benchmarks" | |
cxx-interop: | |
name: Cxx interop | |
# Workaround https://github.com/nektos/act/issues/1875 | |
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main | |
integration-tests: | |
name: Integration Tests | |
# Workaround https://github.com/nektos/act/issues/1875 | |
uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main | |
with: | |
name: "Integration tests" | |
matrix_linux_command: "apt-get update -y -q && apt-get install -y -q lsof dnsutils netcat-openbsd net-tools curl jq && ./scripts/integration_tests.sh" | |
vsock-tests: | |
name: Vsock tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install virt-what | |
run: sudo apt update -yq && sudo apt install -yq virt-what | |
- name: Run virt-what | |
run: sudo virt-what | |
- name: List all loadable vsock kernel modules | |
run: find /lib/modules/$(uname -r) -type f -name '*.ko*' | grep vsock | sort | |
- name: List all loaded vsock kernel modules | |
run: lsmod | grep vsock | sort | |
- name: Load vsock_loopback kernel module | |
run: sudo modprobe vsock_loopback | |
- name: List all loaded vsock kernel modules | |
run: lsmod | grep vsock | sort | |
- name: Load vmw_vsock_virtio_transport kernel module | |
run: sudo modprobe vmw_vsock_virtio_transport | |
- name: List all loaded vsock kernel modules | |
run: lsmod | grep vsock | sort | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Complile and vsock-get-cid.c | |
run: | | |
clang -o vsock-get-cid vsock-get-cid.c | |
sudo strace ./vsock-get-cid | |
- name: Run vsock-get-cid.py | |
run: python3 vsock-get-cid.py | |
- name: Build Swift | |
run: swift build --build-tests | |
- name: Run only vsock tests | |
run: swift test --filter Vsock --filter vsock --filter VSock |