upload path fix #12
This file contains 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: Ghidra RX Extension Build | |
env: | |
ghidra-url: https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.0_build/ghidra_11.0_PUBLIC_20231222.zip | |
ghidra-zip-filename: ghidra_11.0_PUBLIC_20231222.zip | |
ghidra-directory: ghidra_11.0_PUBLIC | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
release: | |
types: [ created ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Download Ghidra release | |
uses: carlosperate/[email protected] | |
id: download-ghidra | |
with: | |
file-url: ${{ env.ghidra-url }} | |
file-name: ${{ env.ghidra-zip-filename }} | |
- name: Unzip Ghidra | |
uses: TonyBogdanov/[email protected] | |
with: | |
args: unzip -qq ${{ steps.download-ghidra.outputs.file-path }} -d . | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '18.0.2' | |
- name: Build extension | |
uses: eskatos/gradle-command-action@v1 | |
with: | |
gradle-version: '7.3' | |
build-root-directory: ${{ github.workspace }}/.. | |
arguments: '-PGHIDRA_INSTALL_DIR=${{ github.workspace }}/${{ env.ghidra-directory }} --info' | |
- name: Upload built extension | |
uses: actions/upload-artifact@v2 | |
with: | |
name: extension | |
path: dist/*.zip | |
- name: Debug List directory contents | |
run: | | |
echo "Listing build directory contents:" | |
ls -R ${{ github.workspace }} | |
release: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'release' }} | |
needs: build | |
steps: | |
- name: Download built extension | |
uses: actions/download-artifact@v2 | |
with: | |
name: extension | |
- name: Upload extension to release | |
uses: skx/github-action-publish-binaries@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
args: '*.zip' |