From 15f97e3e0caddfd2ced6aefaa95a9cd329597c99 Mon Sep 17 00:00:00 2001 From: wargio Date: Wed, 4 Sep 2024 13:27:19 +0800 Subject: [PATCH] Compile jsdec in EXTRA_PREFIX with the correct branch aaaa --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6addac98f..b2e33639fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -797,8 +797,13 @@ jobs: ninja -C build && sudo ninja -C build install - name: Compile jsdec in EXTRA_PREFIX run: | - git clone https://github.com/rizinorg/jsdec - cd jsdec && meson -Dstandalone=false --prefix=/usr/local build && meson compile -C build && sudo meson install -C build + if ${{ (contains(github.ref, 'release-') || github.ref == 'refs/heads/stable') }} ; then + git clone --depth 1 --branch master https://github.com/rizinorg/jsdec + cd jsdec && meson -Dstandalone=false --prefix=/usr/local build && meson compile -C build && sudo meson install -C build + else + git clone --depth 1 --branch dev https://github.com/rizinorg/jsdec + cd jsdec && meson -Dbuild_type=rizin --prefix=/usr/local build && meson compile -C build && sudo meson install -C build + fi - name: Test jsdec plugin is loaded from EXTRA_PREFIX run: | rizin -qc "Lc~jsdec"