From d97d53970e536afae4f47c4631c8bcaeb6256866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20V=C3=A1zquez=20Blanco?= Date: Mon, 17 Jun 2024 17:46:03 +0200 Subject: [PATCH] CI: Add compilation pipeline --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..007b60e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +name: Build +on: [push, pull_request, workflow_dispatch] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + ghidra: + - "11.1.1" + - "11.1" + + steps: + - name: Clone Repository + uses: actions/checkout@v4 + + - name: Install Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + + - name: Install Gradle + uses: gradle/actions/setup-gradle@v3 + + - name: Install Ghidra ${{ matrix.ghidra }} + uses: antoniovazquezblanco/setup-ghidra@v2.0.3 + with: + auth_token: ${{ secrets.GITHUB_TOKEN }} + version: ${{ matrix.ghidra }} + + - name: Build + run: gradle buildExtension -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: fr60_Ghidra_${{ matrix.ghidra }} + path: dist/*fr60.zip