Update nitro enclaves support #161
Workflow file for this run
This file contains hidden or 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: Integration tests | |
| on: [pull_request] | |
| jobs: | |
| # x86_64 only due to virtualization limitations of GitHub Actions | |
| integration-tests: | |
| name: Integration Tests (Linux x86_64) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-build-env | |
| - name: Add musl target | |
| run: rustup target add x86_64-unknown-linux-musl | |
| - name: Build and install libkrun to test prefix | |
| run: make test-prefix | |
| - name: Clippy (test_cases guest) | |
| run: | | |
| cd tests | |
| cargo clippy --locked -p test_cases --features guest -- -D warnings | |
| - name: Clippy (test_cases host) | |
| run: | | |
| cd tests | |
| PKG_CONFIG_PATH="$(realpath ../test-prefix/lib64/pkgconfig/)" LD_LIBRARY_PATH="$(realpath ../test-prefix/lib64/)" cargo clippy --locked -p test_cases --features host -- -D warnings | |
| - name: Clippy (runner) | |
| run: | | |
| cd tests | |
| PKG_CONFIG_PATH="$(realpath ../test-prefix/lib64/pkgconfig/)" LD_LIBRARY_PATH="$(realpath ../test-prefix/lib64/)" cargo clippy --locked -p runner -- -D warnings | |
| - name: Clippy (guest-agent) | |
| run: | | |
| cd tests | |
| cargo clippy --locked --target x86_64-unknown-linux-musl -p guest-agent -- -D warnings | |
| - name: Enable KVM group perms | |
| run: | | |
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
| sudo udevadm control --reload-rules | |
| sudo udevadm trigger --name-match=kvm | |
| sudo usermod -a -G kvm $USER | |
| - name: Install additional packages | |
| run: sudo apt-get install -y --no-install-recommends build-essential patchelf pkg-config net-tools | |
| - name: Install libkrunfw | |
| run: curl -L -o /tmp/libkrunfw-5.0.0-x86_64.tgz https://github.com/containers/libkrunfw/releases/download/v5.0.0/libkrunfw-5.0.0-x86_64.tgz && mkdir tmp && tar xf /tmp/libkrunfw-5.0.0-x86_64.tgz -C tmp && sudo mv tmp/lib64/* /lib/x86_64-linux-gnu | |
| - name: Integration tests | |
| run: RUST_LOG=trace KRUN_ENOMEM_WORKAROUND=1 KRUN_NO_UNSHARE=1 make test |