From 94bd966499f4a0b6c4c128ed5dbed982e1314853 Mon Sep 17 00:00:00 2001 From: Shuwen Sun Date: Wed, 23 Oct 2024 01:19:06 +0000 Subject: [PATCH] meson --- .github/workflows/c-cpp.yml | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index e81a266..fc56337 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -11,21 +11,27 @@ jobs: runs-on: ubuntu-latest steps: - - name: Setup dependencies - run: | - sudo apt update -y - sudo apt install -y build-essential python3-pip libacl1-dev libattr1-dev libgtkmm-3.0-dev libnautilus-extension-dev gettext ninja-build - pip3 install --user meson - - name: Setup meson - run: | - mkdir build - cd build && meson .. - - name: Build - working-directory: ./build - run: meson compile - - name: Test distributable - working-directory: ./build - run: meson dist + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + - name: Install dependencies + run: python -m pip install meson=="1.4.0" ninja + - name: Configure Project + run: meson setup builddir/ + env: + CC: gcc + - name: Run Tests + run: meson test -C builddir/ -v + - name: Upload Test Log + uses: actions/upload-artifact@v4 + if: failure() + with: + name: ubuntu_latest_Meson_Testlog + path: builddir/meson-logs/testlog.txt + - uses: actions/checkout@v4 - name: Install cross compile tools run: |