From 057d87c31f1ac9e6b6355fd442e38f36df4487a9 Mon Sep 17 00:00:00 2001 From: Sylvain Pelissier Date: Sat, 10 Aug 2024 08:30:34 +0200 Subject: [PATCH] Fix checkout to current PR --- .github/workflows/ci.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abdd40b..2fe0883 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,16 +46,29 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 + with: + repository: radareorg/radare2 + ref: master + path: ./radare2 - name: Installing radare2 run: | - git clone --depth=1 https://github.com/radareorg/radare2 && cd radare2 + cd radare2 sys/install.sh - - name: Installing yara and r2yara via r2pm - run: r2pm -Uci r2yara + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + path: ./r2yara + - name: Init r2pm in a local folder + run: | + export R2PM_GITDIR=`pwd` + r2pm -ci yara + r2pm -i r2yara - name: Testing r2yara installation run: R2_DEBUG=1 r2 -qcq -c 'yrv' -- - name: Running Testsuite - run: make -C test + run: | + cd r2yara + make -C test build-macos: runs-on: macos-12 steps: