From 2fc7a48b92efceddb46e6dc0361f6c193fb57428 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Mon, 29 Jan 2024 12:57:37 +0100 Subject: [PATCH 1/7] ci: build for many ghidra versions --- .github/workflows/ci.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10957c7..1dbadc5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,16 +1,23 @@ name: ci on: push -env: - GHIDRA_VERSION: "11.0" - GHIDRA_BUILD_DATE: 20231222 - GHIDRA_SHA256: f1f240f91cf6b1dffc9a4148384ee3c6b269a8ae27c6f981577973e00043ad94 - GHIDRA_INSTALL_DIR: /home/runner/ghidra - jobs: build_and_test: name: Build + test runs-on: ubuntu-latest + strategy: + matrix: + ghidra: + - "11.0" + - "10.4" + - "10.3.3" + - "10.3.2" + - "10.3.1" + - "10.3" + - "10.2.3" + - "10.2.2" + - "10.2.1" + - "10.2" steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 @@ -18,9 +25,11 @@ jobs: distribution: 'temurin' java-version: '17' cache: 'gradle' - - name: Install Ghidra - run: .github/scripts/install_ghidra.sh - - run: ./gradlew build + - uses: antoniovazquezblanco/setup-ghidra@v1.2.0 + with: + auth_token: ${{ secrets.GITHUB_TOKEN }} + version: ${{ matrix.ghidra }} + - run: ./gradlew build -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} - uses: actions/upload-artifact@v4 with: name: distribution From d84f48928fbad6dd18c12ac2f54042c7455588d5 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Mon, 29 Jan 2024 12:59:50 +0100 Subject: [PATCH 2/7] ci: test PRs --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1dbadc5..b7a9610 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ name: ci -on: push +on: [push, pull_request, workflow_dispatch] jobs: build_and_test: From 8e570e2a36fdf536cf4dc0abe72a30333cc84efc Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Mon, 29 Jan 2024 13:02:57 +0100 Subject: [PATCH 3/7] ci: remove Ghidra 10.2 testing --- .github/workflows/ci.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7a9610..eb32223 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,6 @@ jobs: - "10.3.2" - "10.3.1" - "10.3" - - "10.2.3" - - "10.2.2" - - "10.2.1" - - "10.2" steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 From 3468d4f3e6b41324eb8007e94b3c88cb5763ccfd Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Mon, 29 Jan 2024 13:12:06 +0100 Subject: [PATCH 4/7] ci: fix artifact naming --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb32223..50eb52e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - run: ./gradlew build -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} - uses: actions/upload-artifact@v4 with: - name: distribution + name: GhidraBoy_Ghidra_${{ matrix.ghidra }} path: build/distributions/*_GhidraBoy.zip if-no-files-found: 'error' release: @@ -41,11 +41,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 - with: - name: distribution - name: Create release and upload distribution env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release create --verify-tag --generate-notes --draft "${{ github.ref_name }}" - gh release upload "${{ github.ref_name }}" *_GhidraBoy.zip + gh release upload "${{ github.ref_name }}" GhidraBoy_Ghidra_*/*.zip From 49c7f6c68f87ce24077a207b9b945189623a7d22 Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Sun, 9 Jun 2024 11:20:35 +0300 Subject: [PATCH 5/7] Use old install script --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50eb52e..dce5edb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,19 +1,38 @@ name: ci on: [push, pull_request, workflow_dispatch] +env: + GHIDRA_INSTALL_DIR: /home/runner/ghidra + jobs: build_and_test: name: Build + test runs-on: ubuntu-latest strategy: matrix: - ghidra: - - "11.0" - - "10.4" - - "10.3.3" - - "10.3.2" - - "10.3.1" - - "10.3" + include: + - ghidra_version: "11.0" + ghidra_build_date: "20231222" + ghidra_sha256: "f1f240f91cf6b1dffc9a4148384ee3c6b269a8ae27c6f981577973e00043ad94" + - ghidra_version: "10.4" + ghidra_build_date: "20230928" + ghidra_sha256: "6911d674798f145f8ea723fdd3eb67a8fae8c7be92e117bca081e6ef66acac19" + - ghidra_version: "10.3.3" + ghidra_build_date: "20230829" + ghidra_sha256: "63833361bea8ef5ada1bc28cd2aa2ae4ab43204d2672b595500372582152eebe" + - ghidra_version: "10.3.2" + ghidra_build_date: "20230711" + ghidra_sha256: "a658677a87d0be12ab65bd7962f471875b81a2dd2ea35d69cc3201555ca1bd6f" + - ghidra_version: "10.3.1" + ghidra_build_date: "20230614" + ghidra_sha256: "0413b679436039cc136b950a6d8c24e80ce79da0a0a48993dfacee671b1c7974" + - ghidra_version: "10.3" + ghidra_build_date: "20230510" + ghidra_sha256: "4e990af9b22be562769bb6ce5d4d609fbb45455a7a2f756167b8cdcdb75887fc" + env: + GHIDRA_VERSION: ${{ matrix.ghidra_version }} + GHIDRA_BUILD_DATE: ${{ matrix.ghidra_build_date }} + GHIDRA_SHA256: ${{ matrix.ghidra_sha256 }} steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 @@ -21,14 +40,12 @@ jobs: distribution: 'temurin' java-version: '17' cache: 'gradle' - - uses: antoniovazquezblanco/setup-ghidra@v1.2.0 - with: - auth_token: ${{ secrets.GITHUB_TOKEN }} - version: ${{ matrix.ghidra }} - - run: ./gradlew build -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }} + - name: Install Ghidra + run: .github/scripts/install_ghidra.sh + - run: ./gradlew build - uses: actions/upload-artifact@v4 with: - name: GhidraBoy_Ghidra_${{ matrix.ghidra }} + name: GhidraBoy_Ghidra_${{ matrix.ghidra_version }} path: build/distributions/*_GhidraBoy.zip if-no-files-found: 'error' release: From 5fb23f5bbf2c9ba530d9f269641256b6ba8bbd2e Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Sun, 9 Jun 2024 11:25:14 +0300 Subject: [PATCH 6/7] Add missing 11.0.x versions --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dce5edb..98d8f04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,15 @@ jobs: strategy: matrix: include: + - ghidra_version: "11.0.3" + ghidra_build_date: "20240410" + ghidra_sha256: "2462a2d0ab11e30f9e907cd3b4aa6b48dd2642f325617e3d922c28e752be6761" + - ghidra_version: "11.0.2" + ghidra_build_date: "20240326" + ghidra_sha256: "4f16ae3f288f8c01fd1872e8e55b25c79744e7b1e8a9383c5e576668ca7d1906" + - ghidra_version: "11.0.1" + ghidra_build_date: "20240130" + ghidra_sha256: "a0bc9450aa3a231096b13a823c66311b9f84cb9cec4624393221cfed40ef6924" - ghidra_version: "11.0" ghidra_build_date: "20231222" ghidra_sha256: "f1f240f91cf6b1dffc9a4148384ee3c6b269a8ae27c6f981577973e00043ad94" From 81fdc486844fa488a05cac13695788fef7eb6b9e Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Sun, 9 Jun 2024 11:27:27 +0300 Subject: [PATCH 7/7] List supported versions in README --- README.markdown | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 405bfe9..0871c66 100644 --- a/README.markdown +++ b/README.markdown @@ -2,7 +2,17 @@ **Very experimental! No compatibility guarantees!** -Ghidra version: Ghidra 11.0_PUBLIC_20231222 +Supported Ghidra versions: + +- 11.0.3 +- 11.0.2 +- 11.0.1 +- 11.0 +- 10.4 +- 10.3.3 +- 10.3.2 +- 10.3.1 +- 10.3 ![Tetris disassembly](screenshot.png)