Skip to content

Commit

Permalink
meson
Browse files Browse the repository at this point in the history
  • Loading branch information
shuwens committed Oct 23, 2024
1 parent b6bdc97 commit 94bd966
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 94bd966

Please sign in to comment.