From 36600d7465e854c6f3d7fc824a7fa5d4415a6292 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Tue, 8 Sep 2020 19:27:20 +0100 Subject: Add a test run in an environment which only has a cross compiler Add '--cross-only' option to run_tests.py, so we can arrange not to run tests in the 'native' suite when only a cross-compiler is available, as they can't succeed. --- .github/workflows/nonative.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/nonative.yml (limited to '.github/workflows') diff --git a/.github/workflows/nonative.yml b/.github/workflows/nonative.yml new file mode 100644 index 000000000..59386c530 --- /dev/null +++ b/.github/workflows/nonative.yml @@ -0,0 +1,19 @@ +name: Cross-only compilation environment + +on: + push: + branches: + - master + pull_request: + +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 + - uses: actions/checkout@v2 + - name: Run tests + run: bash -c 'source /ci/env_vars.sh; cd $GITHUB_WORKSPACE; ./run_tests.py $CI_ARGS --cross ubuntu-armhf.txt --cross-only' -- cgit v1.2.3