Skip to content

Commit

Permalink
ci: add a build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovazquezblanco authored and RobertLarsen committed Nov 12, 2024
1 parent 250b20d commit 8a8b648
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build
on: [push, pull_request, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
ghidra:
- "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@v1.2.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: FirmwareToolkit_Ghidra_${{ matrix.ghidra }}
path: dist/*FirmwareToolkit.zip

0 comments on commit 8a8b648

Please sign in to comment.