Skip to content

Commit

Permalink
Add cross test for UEFI
Browse files Browse the repository at this point in the history
  • Loading branch information
RossComputerGuy committed Dec 24, 2024
1 parent d3d4aad commit 2d705fe
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/nonnative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions cross/uefi-x64.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"file": "uefi-x64.txt",
"tests": ["common"],
"env": {}
}
11 changes: 11 additions & 0 deletions cross/uefi-x64.txt
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 2d705fe

Please sign in to comment.