aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/nonative.yml
blob: c4bad9531ccbb8d4964f7cf2eb13554327f70e59 (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
name: Cross-only compilation environment

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

jobs:
  cross-only-armhf:
    runs-on: ubuntu-latest
    container: mesonbuild/eoan:latest
    steps:
    - run: |
        apt-get -y purge clang gcc gdc
        apt-get -y autoremove
        python3 -m pip install coverage codecov
    - uses: actions/checkout@v2
    - 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 ubuntu-armhf.json --cross-only'
    - name: Upload coverage report
      run: ./ci/upload_cov.sh "Ubuntu nonnative"