From 9ef889400c612bb91a9a5e8cd203cd4639518955 Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Tue, 5 Jul 2022 21:40:22 +0800 Subject: [PATCH] Add Muon CI job --- .github/workflows/muon.yml | 75 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/muon.yml diff --git a/.github/workflows/muon.yml b/.github/workflows/muon.yml new file mode 100644 index 0000000000..83c3bd0258 --- /dev/null +++ b/.github/workflows/muon.yml @@ -0,0 +1,75 @@ +name: Muon build + +on: + push: + paths: + - '**.c' + - '**.h' + - '**.in' + - '**.inc' + - '**/meson.build' + - 'subprojects/**' + - 'test/**' + - '.github/workflows/muon.yml' + branches: + - 'dev' + - 'stable' + - 'container-*' + pull_request: + paths: + - '**.c' + - '**.h' + - '**.in' + - '**.inc' + - '**/meson.build' + - 'subprojects/**' + - 'test/**' + - '.github/workflows/muon.yml' + branches: + - 'dev' + - 'stable' + - 'release-*' + +jobs: + build: + name: ubuntu-muon + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Disable CMake module (unsupported by Muon) + run: | + sed -i "s/import('cmake')/import('cmake', required: false)/" meson.build + - name: Install dependencies + run: | + sudo apt-get --assume-yes update + sudo apt-get --assume-yes install python3-wheel python3-setuptools pkgconf libcurl4-openssl-dev libpkgconf-dev libarchive-dev + sudo python3 -m pip install ninja + + - name: Checkout Muon repository + run: | + git clone https://git.sr.ht/~lattis/muon + + - name: Compiling and installing Muon + working-directory: muon + run: | + ./bootstrap.sh build + build/muon setup build + ninja -C build + sudo cp build/muon /usr/bin/muon + + - name: Muon setup + run: muon setup build + - name: Ninja compile and install + run: ninja -C build && sudo muon -C build install + + - name: Checkout our Testsuite Binaries + uses: actions/checkout@v2 + with: + repository: rizinorg/rizin-testbins + path: test/bins + + - name: Run unit tests + run: muon -C build test + - name: Rizin version + run: | + rizin -v