summaryrefslogtreecommitdiff
path: root/.github/workflows/nonnative.yml
blob: c616f5199b3dae2c39d17bd2bc45b2fdf37bc77a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Cross-only compilation environment

concurrency:
  group: nonnative-${{ github.head_ref || github.ref }}
  cancel-in-progress: true

on:
  push:
    branches:
      - master
      # Stable branches such as 0.56 or 1.0
      - '[0-9]+.[0-9]+'
    paths:
      - "mesonbuild/**"
      - "test cases/**"
      - ".github/workflows/nonnative.yml"
      - "run*tests.py"
  pull_request:
    paths:
      - "mesonbuild/**"
      - "test cases/**"
      - ".github/workflows/nonnative.yml"
      - "run*tests.py"

permissions:
  contents: read

jobs:
  cross-only-armhf:
    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
    - uses: actions/checkout@v4
    - name: Run tests
      run: bash -c 'source /ci/env_vars.sh; cd $GITHUB_WORKSPACE; ./run_tests.py $CI_ARGS --cross ubuntu-armhf.json --cross-only'

  cross-cuda:
    runs-on: ubuntu-latest
    container: mesonbuild/cuda-cross:latest
    env:
      MESON_CI_JOBNAME: cuda-cross-${{ github.job }}
    steps:
    - uses: actions/checkout@v4
    - name: Run tests
      run: bash -c 'source /ci/env_vars.sh; cd $GITHUB_WORKSPACE; ./run_tests.py $CI_ARGS --cross cuda-cross.json --cross-only'