[action] Fix meson install and usage
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Mon, 30 Oct 2023 08:21:08 +0000 (17:21 +0900)
committerSangjung Woo <again4you@gmail.com>
Tue, 31 Oct 2023 05:38:54 +0000 (14:38 +0900)
- Let ubuntu build install proper meson and python.
- And use meson commands explicilty rather than use outdated action from
  github marketplace

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
.github/workflows/ubuntu_clean_llvm_build.yml
.github/workflows/ubuntu_clean_meson_build.yml

index 69122c7..acf4a11 100644 (file)
@@ -17,12 +17,22 @@ jobs:
     steps:
     - uses: actions/checkout@v3
     - uses: actions/setup-python@v1
+      with:
+        python-version: '3.x'
     - name: install minimal requirements
       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 meson ninja-build
-    - name: meson build with llvm/clang
-      run: |
-          CC=clang CXX=clang++ meson build && \
-          ninja test -C build
+            gstreamer1.0-plugins-good clang
+    - run: pip install meson ninja
+    - run: meson setup build/
+      env:
+        CC: clang
+        CXX: clang++
+    - run: meson compile -C build/
+    - run: meson test -C build/ -v
+    - uses: actions/upload-artifact@v1
+      if: failure()
+      with:
+        name: Meson_LLVM_Testlog
+        path: build/meson-logs/testlog.txt
index 3b044a4..6676354 100644 (file)
@@ -17,14 +17,24 @@ jobs:
     steps:
     - uses: actions/checkout@v3
     - uses: actions/setup-python@v1
+      with:
+        python-version: '3.x'
     - name: install minimal requirements
       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
-    - uses: BSFishy/meson-build@v1.0.3
+    - run: pip install meson ninja
+    - run: meson setup build/
+      env:
+        CC: gcc
+    - run: meson compile -C build/
+    - run: meson test -C build/ -v
+    - uses: actions/upload-artifact@v1
+      if: failure()
       with:
-        action: test
+        name: Meson_Testlog
+        path: build/meson-logs/testlog.txt
 
 # TODO: add more subplugins to be built
 # TODO: add unit testing