summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-11-26 09:22:32 +0100
committerDylan Baker <dylan@pnwbakers.com>2020-12-11 13:45:11 -0800
commit8d04b3ce745821b18c78ba5ee19e4f00726d8d89 (patch)
treec2926c692c24754e6d670521c1d812a0f32bfa24 /.github
parentb65168c558c64cd2af4a9586443c295c5bec1114 (diff)
downloadmeson-8d04b3ce745821b18c78ba5ee19e4f00726d8d89.tar.gz
CI: Move all remaining jobs from travis-ci to GHA
Some changes: * Set HOME to /root, since github mounts its own HOME and 'wine' (because of permissions) and 'dub' (can't find packages) don't like that. * Remove the seccomp option, doesn't seem to be needed.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/os_comp.yml66
1 files changed, 66 insertions, 0 deletions
diff --git a/.github/workflows/os_comp.yml b/.github/workflows/os_comp.yml
index 5f4df20e3..b8940fa32 100644
--- a/.github/workflows/os_comp.yml
+++ b/.github/workflows/os_comp.yml
@@ -27,3 +27,69 @@ jobs:
# They are defined in the `env` section in each image.json. CI_ARGS should be set
# via the `args` array ub the image.json
run: bash -c 'source /ci/env_vars.sh; cd $GITHUB_WORKSPACE; ./run_tests.py $CI_ARGS'
+
+ eoan:
+ name: 'Ubuntu Eoan'
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ cfg:
+ - CC: 'gcc'
+ CXX: 'g++'
+ - MESON_ARGS: '--unity=on'
+ RUN_TESTS_ARGS: '--no-unittests'
+ CC: 'gcc'
+ CXX: 'g++'
+ - CC: 'clang'
+ CXX: 'clang++'
+ - MESON_ARGS: '--unity=on'
+ RUN_TESTS_ARGS: '--no-unittests'
+ CC: 'clang'
+ CXX: 'clang++'
+ - RUN_TESTS_ARGS: '--cross ubuntu-armhf.json --cross linux-mingw-w64-64bit.json'
+ MESON_RSP_THRESHOLD: '0'
+ CC: 'gcc'
+ CXX: 'g++'
+ - RUN_TESTS_ARGS: '--cross ubuntu-armhf.json --cross linux-mingw-w64-64bit.json'
+ MESON_ARGS: '--unity=on'
+ CC: 'gcc'
+ CXX: 'g++'
+
+ container:
+ image: mesonbuild/eoan
+ env:
+ MESON_RSP_THRESHOLD: ${{ matrix.cfg.MESON_RSP_THRESHOLD }}
+ MESON_ARGS: ${{ matrix.cfg.MESON_ARGS }}
+ RUN_TESTS_ARGS: ${{ matrix.cfg.RUN_TESTS_ARGS }}
+ CC: ${{ matrix.cfg.CC }}
+ CXX: ${{ matrix.cfg.CXX }}
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Run tests
+ shell: bash
+ run: |
+ export HOME=/root
+
+ export CC=$CC
+ export CXX=$CXX
+ export OBJC=$CC
+ export OBJCXX=$CXX
+ export PATH=$(pwd)/tools:$PATH
+ if test "$MESON_RSP_THRESHOLD" != ""
+ then
+ export MESON_RSP_THRESHOLD=$MESON_RSP_THRESHOLD
+ fi
+
+ source /ci/env_vars.sh
+
+ update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
+ update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
+ update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix
+ update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
+
+ ./run_tests.py $RUN_TESTS_ARGS -- $MESON_ARGS \ No newline at end of file