Files
xemu/.github/workflows/build-tests.yml

31 lines
749 B
YAML

name: Unit tests
on:
workflow_call:
jobs:
test:
name: Run unit tests
runs-on: ubuntu-22.04
steps:
- name: Download source package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v4
with:
name: src
- name: Extract source package
run: |
mkdir src
tar -xf xemu-*.tar.zst -C src --strip-components=2
- name: Install dependencies
run: |
sudo apt-get -qy update
pushd src
sudo apt-get -qy build-dep .
popd
- name: Configure
working-directory: src
run: ./configure --target-list=i386-softmmu --disable-werror
- name: Run unit tests
working-directory: src
run: make -j$(nproc) check-unit