tables: add ACPI HMAT structures and accessors #1380
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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| lint-python-scripts: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install flake8 & mypy | |
| run: | | |
| sudo apt update | |
| sudo apt install python3 python3-pip | |
| export PIP_BREAK_SYSTEM_PACKAGES=1 | |
| pip install flake8 mypy | |
| - name: Run flake8 on the project | |
| run: flake8 --ignore=E743 tests/*.py tests/utilities/*.py tests/generated_test_cases/*.py | |
| - name: Run mypy on the project | |
| run: mypy --disallow-incomplete-defs --no-implicit-optional tests/*.py tests/utilities/*.py tests/generated_test_cases/*.py | |
| lint-library-sources: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Ensure only UACPI_NULL is used in library code | |
| run: | | |
| for f in source/*.c; do | |
| gcc -c -o /dev/null -Iinclude -Itests/types-override \ | |
| -DUACPI_OVERRIDE_TYPES "$f" | |
| done | |
| build-and-run-tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| # MacOS is temporarily removed due to https://github.com/acpica/acpica/issues/1154 | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - if: ${{ matrix.os != 'macos-latest' }} | |
| name: Set up OpenWatcom | |
| uses: open-watcom/setup-watcom@v0 | |
| with: | |
| version: '2.0' | |
| - if: ${{ matrix.os == 'ubuntu-latest' }} | |
| name: Install tools & libraries (Ubuntu) | |
| run: | | |
| sudo apt update | |
| sudo apt install python3 python3-pytest acpica-tools cmake gcc-multilib g++-multilib | |
| # https://github.com/actions/runner-images/issues/9491#issuecomment-1989718917 | |
| sudo sysctl vm.mmap_rnd_bits=28 | |
| - if: ${{ matrix.os == 'macos-latest' }} | |
| name: Install tools & libraries (MacOS) | |
| run: | | |
| export PIP_BREAK_SYSTEM_PACKAGES=1 | |
| brew install python3 acpica cmake | |
| python3 -m pip install pytest | |
| - if: ${{ matrix.os == 'windows-latest' }} | |
| name: Install tools & libraries (Windows) | |
| run: | | |
| # Hardcode ACPICA version due to a regression in https://github.com/acpica/acpica/issues/1154 | |
| # We use a locally committed ZIP because Intel blocks GitHub Actions from downloading stuff | |
| $ZIP_PATH = ".\.github\workflows\acpica-pre-regression.zip" | |
| $DEST_DIR = "C:\iasl-20251212" | |
| Write-Host "Extracting local iASL to $DEST_DIR..." | |
| Expand-Archive -Path $ZIP_PATH -DestinationPath $DEST_DIR -Force | |
| Write-Host "Adding $DEST_DIR to GITHUB_PATH..." | |
| "$DEST_DIR" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| choco install python3 cmake llvm | |
| python3 -m pip install pytest | |
| - name: Ensure reduced-hardware/unsized-frees/fmt-logging/no-kernel-init/builtin-string/native-mmio build compiles | |
| run: | | |
| cd ${{ github.workspace}}/tests/runner | |
| mkdir reduced-hw-build && cd reduced-hw-build | |
| cmake .. -DREDUCED_HARDWARE_BUILD=1 -DSIZED_FREES_BUILD=0 -DFORMATTED_LOGGING_BUILD=1 -DNATIVE_ALLOC_ZEROED=1 -DKERNEL_INITIALIZATION=0 -DBUILTIN_STRING=1 -DNATIVE_MMIO=1 | |
| cmake --build . | |
| - name: Run tests (64-bit) | |
| run: python3 ${{ github.workspace }}/tests/run_tests.py --bitness=64 --large --barebones | |
| # MacOS doesn't want to compile i386 (at least easily) so just ignore it: | |
| # ld: warning: The i386 architecture is deprecated for macOS | |
| # ld: dynamic executables or dylibs must link with libSystem.dylib for architecture i386 | |
| # clang: error: linker command failed with exit code 1 (use -v to see invocation) | |
| - if: ${{ matrix.os != 'macos-latest' }} | |
| name: Run tests (32-bit) | |
| run: python3 ${{ github.workspace }}/tests/run_tests.py --bitness=32 --large --barebones | |
| - if: ${{ matrix.os != 'macos-latest' }} | |
| name: Run tests (OpenWatcom) | |
| run: python3 ${{ github.workspace }}/tests/run_tests.py --large --barebones --watcom |