xref: /kvm-unit-tests/ci/cirrus-ci-macos-x86-64.yml (revision bd2daad44928bddbd8daa0098e4cea12560afc78)
1
2macos_task:
3  osx_instance:
4    image: ghcr.io/cirruslabs/macos-ventura-base:latest
5  install_script:
6    - brew update
7    - brew install coreutils bash git gnu-getopt make qemu x86_64-elf-gcc
8  clone_script:
9    - git clone --depth 100 "@CI_REPOSITORY_URL@" .
10    - git fetch origin "@CI_COMMIT_REF_NAME@"
11    - git reset --hard "@CI_COMMIT_SHA@"
12  script:
13    - export PATH="/opt/homebrew/opt/gnu-getopt/bin:$PATH"
14    - mkdir build
15    - cd build
16    - ../configure --arch=x86_64 --cross-prefix=x86_64-elf-
17    - gmake -j$(sysctl -n hw.ncpu)
18    - ACCEL=tcg ./run_tests.sh
19         eventinj
20         intel_iommu
21         ioapic-split
22         realmode
23         rmap_chain
24         setjmp
25         sieve
26         smptest
27         smptest3
28         syscall
29         tsc
30         umip
31         vmexit_cpuid
32         vmexit_inl_pmtimer
33         vmexit_ipi
34         vmexit_ipi_halt
35         vmexit_mov_from_cr8
36         vmexit_mov_to_cr8
37         vmexit_ple_round_robin
38         vmexit_tscdeadline
39         vmexit_tscdeadline_immed
40         | tee results.txt
41    - grep -q PASS results.txt && ! grep -q FAIL results.txt
42  on_failure:
43    log_artifacts:
44      path: build/logs/*.log
45      type: text/plain
46