| 1 |
name: Cross-only compilation environment |
| 2 |
|
| 3 |
concurrency: |
| 4 |
group: nonnative-${{ github.head_ref || github.ref }} |
| 5 |
cancel-in-progress: true |
| 6 |
|
| 7 |
on: |
| 8 |
push: |
| 9 |
branches: |
| 10 |
- master |
| 11 |
# Stable branches such as 0.56 or 1.0 |
| 12 |
- '[0-9]+.[0-9]+' |
| 13 |
paths: |
| 14 |
- "mesonbuild/**" |
| 15 |
- "test cases/**" |
| 16 |
- ".github/workflows/nonnative.yml" |
| 17 |
- "run*tests.py" |
| 18 |
pull_request: |
| 19 |
paths: |
| 20 |
- "mesonbuild/**" |
| 21 |
- "test cases/**" |
| 22 |
- ".github/workflows/nonnative.yml" |
| 23 |
- "run*tests.py" |
| 24 |
|
| 25 |
permissions: |
| 26 |
contents: read |
| 27 |
|
| 28 |
jobs: |
| 29 |
cross-only-armhf: |
| 30 |
runs-on: ubuntu-latest |
| 31 |
container: mesonbuild/eoan:latest |
| 32 |
env: |
| 33 |
MESON_CI_JOBNAME: ubuntu-${{ github.job }} |
| 34 |
|
| 35 |
steps: |
| 36 |
- run: | |
| 37 |
apt-get -y purge clang gcc gdc |
| 38 |
apt-get -y autoremove |
| 39 |
- uses: actions/checkout@v4 |
| 40 |
- name: Run tests |
| 41 |
run: bash -c 'source /ci/env_vars.sh; cd $GITHUB_WORKSPACE; ./run_tests.py $CI_ARGS --cross ubuntu-armhf.json --cross-only' |
| 42 |
|
| 43 |
cross-cuda: |
| 44 |
runs-on: ubuntu-latest |
| 45 |
container: mesonbuild/cuda-cross:latest |
| 46 |
env: |
| 47 |
MESON_CI_JOBNAME: cuda-cross-${{ github.job }} |
| 48 |
steps: |
| 49 |
- uses: actions/checkout@v4 |
| 50 |
- name: Run tests |
| 51 |
run: bash -c 'source /ci/env_vars.sh; cd $GITHUB_WORKSPACE; ./run_tests.py $CI_ARGS --cross cuda-cross.json --cross-only' |