Skip to content

Commit 2d705fe

Browse files
Add cross test for UEFI
1 parent d3d4aad commit 2d705fe

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.github/workflows/nonnative.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,28 @@ jobs:
5151
name: "Ubuntu nonnative"
5252
fail_ci_if_error: false
5353
verbose: true
54+
cross-only-uefi-x64:
55+
runs-on: ubuntu-latest
56+
container: mesonbuild/eoan:latest
57+
env:
58+
MESON_CI_JOBNAME: ubuntu-${{ github.job }}
59+
60+
steps:
61+
- run: |
62+
apt-get -y purge clang gcc gdc
63+
apt-get -y autoremove
64+
python3 -m pip install coverage
65+
- uses: actions/checkout@v4
66+
- name: Run tests
67+
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'
68+
69+
- name: Aggregate coverage reports
70+
run: ./ci/combine_cov.sh
71+
72+
- name: Upload coverage report
73+
uses: codecov/codecov-action@v3
74+
with:
75+
files: .coverage/coverage.xml
76+
name: "Ubuntu nonnative"
77+
fail_ci_if_error: false
78+
verbose: true

cross/uefi-x64.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"file": "uefi-x64.txt",
3+
"tests": ["common"],
4+
"env": {}
5+
}

cross/uefi-x64.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[binaries]
2+
c = ['clang', '-target', 'x86_64-uefi']
3+
cpp = ['clang++', '-target', 'x86_64-uefi']
4+
ar = 'llvm-ar'
5+
strip = 'llvm-strip'
6+
7+
[host_machine]
8+
system = 'uefi'
9+
cpu = 'x86_64'
10+
cpu_family = 'x86_64'
11+
endian = 'little'

0 commit comments

Comments
 (0)