Add cross test for UEFI

pull/14040/head
Tristan Ross 2 months ago
parent d3d4aadec3
commit 2d705fe1ca
No known key found for this signature in database
GPG Key ID: B09C422035669AF8
  1. 25
      .github/workflows/nonnative.yml
  2. 5
      cross/uefi-x64.json
  3. 11
      cross/uefi-x64.txt

@ -51,3 +51,28 @@ jobs:
name: "Ubuntu nonnative"
fail_ci_if_error: false
verbose: true
cross-only-uefi-x64:
runs-on: ubuntu-latest
container: mesonbuild/eoan:latest
env:
MESON_CI_JOBNAME: ubuntu-${{ github.job }}
steps:
- run: |
apt-get -y purge clang gcc gdc
apt-get -y autoremove
python3 -m pip install coverage
- uses: actions/checkout@v4
- name: Run tests
run: bash -c 'source /ci/env_vars.sh; cd $GITHUB_WORKSPACE; ./tools/run_with_cov.py ./run_tests.py $CI_ARGS --cross uefi-x64.json --cross-only'
- name: Aggregate coverage reports
run: ./ci/combine_cov.sh
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
files: .coverage/coverage.xml
name: "Ubuntu nonnative"
fail_ci_if_error: false
verbose: true

@ -0,0 +1,5 @@
{
"file": "uefi-x64.txt",
"tests": ["common"],
"env": {}
}

@ -0,0 +1,11 @@
[binaries]
c = ['clang', '-target', 'x86_64-uefi']
cpp = ['clang++', '-target', 'x86_64-uefi']
ar = 'llvm-ar'
strip = 'llvm-strip'
[host_machine]
system = 'uefi'
cpu = 'x86_64'
cpu_family = 'x86_64'
endian = 'little'
Loading…
Cancel
Save