The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
3.0 KiB
97 lines
3.0 KiB
name: OS Comp Tests |
|
|
|
on: |
|
push: |
|
branches: |
|
- master |
|
# Stable branches such as 0.56 or the eventual 1.0 |
|
- '[0-9]+.[0-9]+' |
|
pull_request: |
|
|
|
jobs: |
|
arch: |
|
name: ${{ matrix.cfg.name }} |
|
runs-on: ubuntu-latest |
|
strategy: |
|
fail-fast: false |
|
matrix: |
|
cfg: |
|
- { name: Arch Linux, id: arch } |
|
- { name: CUDA (on Arch), id: cuda } |
|
- { name: Fedora, id: fedora } |
|
- { name: OpenSUSE, id: opensuse } |
|
- { name: Ubuntu Bionic, id: bionic } |
|
container: mesonbuild/${{ matrix.cfg.id }}:latest |
|
steps: |
|
- uses: actions/checkout@v2 |
|
- name: Run tests |
|
# All environment variables are stored inside the docker image in /ci/env_vars.sh |
|
# 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 |