Merge pull request #14 from antoniovazquezblanco/dependabot/github_ac… #55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: [ push, pull_request, workflow_dispatch ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ghidra: | |
| - "11.2" | |
| - "11.2.1" | |
| - "11.3" | |
| - "11.3.1" | |
| - "11.3.2" | |
| - "11.4" | |
| - "11.4.1" | |
| - "11.4.2" | |
| - "11.4.3" | |
| - "12.0" | |
| - "12.0.1" | |
| - "12.0.2" | |
| steps: | |
| - name: Clone Repository | |
| uses: actions/checkout@v6 | |
| - name: Install Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Install Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Install Ghidra ${{ matrix.ghidra }} | |
| uses: antoniovazquezblanco/setup-ghidra@v2.0.18 | |
| with: | |
| auth_token: ${{ secrets.GITHUB_TOKEN }} | |
| version: ${{ matrix.ghidra }} | |
| - name: Build | |
| run: gradle buildExtension | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: GhidraLinkerScript_Ghidra_${{ matrix.ghidra }} | |
| path: dist/*.zip | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: contains(github.ref, 'refs/tags/v') | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download binaries | |
| uses: actions/download-artifact@v7 | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: GhidraLinkerScript_Ghidra_*/*.zip |