[Action] Fix for failure case #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Minimal meson build in Ubuntu with LLVM/clang | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: Build on Ubuntu with LLVM/Clang | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-22.04 ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check if rebuild required | |
uses: ./.github/actions/check-rebuild | |
with: | |
mode: rebuild | |
- if: env.rebuild == '1' | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.x' | |
- name: install minimal requirements | |
if: env.rebuild == '1' | |
run: | | |
sudo apt-get update && \ | |
sudo apt-get install -y libglib2.0-dev libjson-glib-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev googletest \ | |
gstreamer1.0-plugins-good clang | |
- run: pip install meson ninja | |
if: env.rebuild == '1' | |
- run: meson setup build/ | |
if: env.rebuild == '1' | |
env: | |
CC: clang | |
CXX: clang++ | |
- run: meson compile -C build/ | |
if: env.rebuild == '1' | |
- run: meson test -C build/ -v | |
if: env.rebuild == '1' | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: Meson_LLVM_Testlog | |
path: build/meson-logs/testlog.txt |