ci(github-actions): updated action to install meson
This commit is contained in:
10
.github/workflows/build-and-test.yml
vendored
10
.github/workflows/build-and-test.yml
vendored
@@ -10,12 +10,7 @@ jobs:
|
|||||||
build-and-test:
|
build-and-test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, fedora-latest, archlinux, macos-latest]
|
os: [ubuntu-latest]
|
||||||
include:
|
|
||||||
- os: macos-latest
|
|
||||||
arch: x64
|
|
||||||
- os: macos-latest
|
|
||||||
arch: arm64
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -29,12 +24,15 @@ jobs:
|
|||||||
if [[ "$matrix.os" == "ubuntu-latest" ]]; then
|
if [[ "$matrix.os" == "ubuntu-latest" ]]; then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y cmake build-essential meson ninja-build python3 python3-pip libgtest-dev
|
sudo apt-get install -y cmake build-essential meson ninja-build python3 python3-pip libgtest-dev
|
||||||
|
pip install meson
|
||||||
# Compile gtest manually for Ubuntu
|
# Compile gtest manually for Ubuntu
|
||||||
cd /usr/src/gtest && sudo cmake . && sudo make && sudo cp *.a /usr/lib
|
cd /usr/src/gtest && sudo cmake . && sudo make && sudo cp *.a /usr/lib
|
||||||
elif [[ "$matrix.os" == "fedora-latest" ]]; then
|
elif [[ "$matrix.os" == "fedora-latest" ]]; then
|
||||||
sudo dnf install -y cmake gcc-c++ make meson ninja-build gtest gtest-devel
|
sudo dnf install -y cmake gcc-c++ make meson ninja-build gtest gtest-devel
|
||||||
|
pip install meson
|
||||||
elif [[ "$matrix.os" == "archlinux" ]]; then
|
elif [[ "$matrix.os" == "archlinux" ]]; then
|
||||||
sudo pacman -Syu --noconfirm cmake gcc make meson ninja python gtest
|
sudo pacman -Syu --noconfirm cmake gcc make meson ninja python gtest
|
||||||
|
pip install meson
|
||||||
fi
|
fi
|
||||||
# Common setup for macOS
|
# Common setup for macOS
|
||||||
elif [[ "$RUNNER_OS" == "macOS" ]]; then
|
elif [[ "$RUNNER_OS" == "macOS" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user