mirror of
https://github.com/mesonbuild/meson.git
synced 2026-11-06 05:16:42 +00:00
ci: Drop ubuntu bionic
There is no support for Python 3.10, so we can drop this.
This commit is contained in:
1 parent
0e6e589564
commit
be8fa9d468
11 files changed
+7
-125
No files matched your search
@@ -43,11 +43,9 @@ jobs:
|
||||
- { name: Fedora, id: fedora }
|
||||
- { name: Gentoo, id: gentoo }
|
||||
- { name: OpenSUSE, id: opensuse }
|
||||
- { name: Ubuntu Bionic, id: bionic }
|
||||
- { name: Ubuntu Rolling, id: ubuntu-rolling }
|
||||
steps:
|
||||
# Need v3 because of bionic
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
# Login to dockerhub
|
||||
- name: Docker login
|
||||
|
||||
@@ -42,24 +42,13 @@ jobs:
|
||||
- { name: Fedora, id: fedora }
|
||||
- { name: Gentoo, id: gentoo }
|
||||
- { name: OpenSUSE, id: opensuse }
|
||||
- { name: Ubuntu Bionic, id: bionic }
|
||||
container:
|
||||
image: mesonbuild/${{ matrix.cfg.id }}:latest
|
||||
volumes:
|
||||
- ${{ matrix.cfg.id == 'bionic' && '/node20217:/node20217:rw,rshared' || ' ' }}
|
||||
- ${{ matrix.cfg.id == 'bionic' && '/node20217:/__e/node20:ro,rshared' || ' ' }}
|
||||
env:
|
||||
MESON_CI_JOBNAME: linux-${{ matrix.cfg.id }}-gcc
|
||||
|
||||
steps:
|
||||
- name: install nodejs20glibc2.17
|
||||
if: ${{ matrix.cfg.id == 'bionic' }}
|
||||
run: |
|
||||
apt install curl -y
|
||||
curl -LO https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
|
||||
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
|
||||
ldd /__e/node20/bin/node
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Run tests
|
||||
# All environment variables are stored inside the docker image in /ci/env_vars.sh
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"base_image": "ubuntu:bionic",
|
||||
"env": {
|
||||
"CI": "1",
|
||||
"DC": "gdc",
|
||||
"MESON_CI_JOBNAME": "linux-bionic-gcc"
|
||||
}
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
source /ci/common.sh
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
export LANG='C.UTF-8'
|
||||
export DC=gdc
|
||||
|
||||
pkgs=(
|
||||
python3-pip libxml2-dev libxslt1-dev libyaml-dev libjson-glib-dev
|
||||
python3.7 python3.7-dev
|
||||
wget unzip cmake doxygen
|
||||
clang
|
||||
pkg-config-arm-linux-gnueabihf
|
||||
qt4-linguist-tools qt5-default qtbase5-private-dev
|
||||
python-dev
|
||||
libomp-dev
|
||||
llvm lcov
|
||||
ldc
|
||||
libclang-dev
|
||||
libgcrypt20-dev
|
||||
libgpgme-dev
|
||||
libhdf5-dev openssh-server
|
||||
libboost-python-dev libboost-regex-dev
|
||||
libblocksruntime-dev
|
||||
libperl-dev libscalapack-mpi-dev libncurses-dev
|
||||
itstool
|
||||
openjdk-11-jre
|
||||
)
|
||||
|
||||
boost_pkgs=(atomic chrono date-time filesystem log regex serialization system test thread)
|
||||
|
||||
sed -i '/^#\sdeb-src /s/^#//' "/etc/apt/sources.list"
|
||||
apt-get -y update
|
||||
apt-get -y upgrade
|
||||
apt-get -y install eatmydata
|
||||
|
||||
# Base stuff
|
||||
eatmydata apt-get -y build-dep meson
|
||||
|
||||
# Add boost packages
|
||||
for i in "${boost_pkgs[@]}"; do
|
||||
for j in "1.62.0" "1.65.1"; do
|
||||
pkgs+=("libboost-${i}${j}")
|
||||
done
|
||||
done
|
||||
|
||||
# packages
|
||||
eatmydata apt-get -y install "${pkgs[@]}"
|
||||
|
||||
# Actually select the right python version
|
||||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1 \
|
||||
--slave /usr/lib/x86_64-linux-gnu/pkgconfig/python3.pc python3.pc /usr/lib/x86_64-linux-gnu/pkgconfig/python-3.6.pc
|
||||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2 \
|
||||
--slave /usr/lib/x86_64-linux-gnu/pkgconfig/python3.pc python3.pc /usr/lib/x86_64-linux-gnu/pkgconfig/python-3.7.pc
|
||||
|
||||
python3 -m pip install -U "${base_python_pkgs[@]}" "${python_pkgs[@]}"
|
||||
|
||||
# Install the ninja 0.10
|
||||
wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip
|
||||
unzip ninja-linux.zip -d /ci
|
||||
|
||||
# cleanup
|
||||
apt-get -y remove ninja-build
|
||||
apt-get -y clean
|
||||
apt-get -y autoclean
|
||||
rm ninja-linux.zip
|
||||
@@ -233,33 +233,6 @@ The following statement is sufficient for Meson to find Boost:
|
||||
- cmd: set BOOST_ROOT=C:\Libraries\boost_1_67_0
|
||||
```
|
||||
|
||||
## Travis without Docker
|
||||
|
||||
Non-Docker Travis-CI builds can use Linux, MacOS or Windows.
|
||||
Set the desired compiler(s) in the build **matrix**.
|
||||
This example is for **Linux** (Ubuntu 18.04) and **C**.
|
||||
|
||||
```yaml
|
||||
dist: bionic
|
||||
group: travis_latest
|
||||
|
||||
os: linux
|
||||
language: python
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- env: CC=gcc
|
||||
- env: CC=clang
|
||||
|
||||
install:
|
||||
- pip install meson ninja
|
||||
|
||||
script:
|
||||
- meson setup builddir
|
||||
- meson compile -C builddir
|
||||
- meson test -C builddir
|
||||
```
|
||||
|
||||
## GitHub Actions
|
||||
|
||||
GitHub Actions provides a versatile platform for continuous integration
|
||||
|
||||
@@ -23,7 +23,6 @@ permitted_files = (
|
||||
'ci/ciimage/ubuntu-rolling/test.sh',
|
||||
'ci/ciimage/cuda-cross/install.sh',
|
||||
'ci/ciimage/cuda/install.sh',
|
||||
'ci/ciimage/bionic/install.sh',
|
||||
'ci/ciimage/fedora/install.sh',
|
||||
'ci/ciimage/arch/install.sh',
|
||||
'ci/ciimage/gentoo/install.sh',
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
{ "val": "config-tool" },
|
||||
{ "val": "sdlconfig" },
|
||||
{ "val": "extraframework", "expect_skip_on_os": ["!darwin"], "expect_skip_on_jobname": ["macos"] },
|
||||
{ "val": "cmake", "expect_skip_on_jobname": ["bionic"] }
|
||||
{ "val": "cmake" }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"expect_skip_on_jobname": ["azure", "bionic", "cygwin", "fedora", "macos", "msys2", "opensuse", "ubuntu", "windows"]
|
||||
"expect_skip_on_jobname": ["azure", "cygwin", "fedora", "macos", "msys2", "opensuse", "ubuntu", "windows"]
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"expect_skip_on_jobname": ["azure", "bionic", "cygwin", "fedora", "msys2", "opensuse", "windows"]
|
||||
"expect_skip_on_jobname": ["azure", "cygwin", "fedora", "msys2", "opensuse", "windows"]
|
||||
}
|
||||
@@ -5,5 +5,5 @@
|
||||
{"type": "file", "platform": "cygwin", "file": "usr/lib/libgirlib.dll.a"},
|
||||
{"type": "file", "file": "usr/share/gir-1.0/Meson-1.0.gir"}
|
||||
],
|
||||
"expect_skip_on_jobname": ["azure", "bionic", "macos", "msys2", "windows"]
|
||||
"expect_skip_on_jobname": ["azure", "macos", "msys2", "windows"]
|
||||
}
|
||||
@@ -18,5 +18,5 @@
|
||||
{"type": "file", "file": "usr/qml/My/Module5/qmldir"},
|
||||
{"type": "file", "file": "usr/qml/My/Module5/My_Module5.qmltypes"}
|
||||
],
|
||||
"expect_skip_on_jobname": ["cygwin", "msys2", "azure", "bionic", "macos", "windows"]
|
||||
"expect_skip_on_jobname": ["cygwin", "msys2", "azure", "macos", "windows"]
|
||||
}
|
||||
Reference in new issue
Block a user