Skip to content

Commit a221953

Browse files
Add cross test for UEFI
1 parent d3d4aad commit a221953

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

.github/workflows/nonnative.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,31 @@ 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+
- uses: KyleMayes/install-llvm-action@v2
62+
with:
63+
version: "19.1"
64+
- run: |
65+
apt-get -y purge clang gcc gdc
66+
apt-get -y autoremove
67+
python3 -m pip install coverage
68+
- uses: actions/checkout@v4
69+
- name: Run tests
70+
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'
71+
72+
- name: Aggregate coverage reports
73+
run: ./ci/combine_cov.sh
74+
75+
- name: Upload coverage report
76+
uses: codecov/codecov-action@v3
77+
with:
78+
files: .coverage/coverage.xml
79+
name: "Ubuntu nonnative"
80+
fail_ci_if_error: false
81+
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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
endian = 'little'

0 commit comments

Comments
 (0)