Add workflow, thanks Ghidra-GameCube-Loader

This commit is contained in:
Maschell 2023-07-26 12:13:06 +02:00
parent 34b4eafe08
commit 4ce82624c8

31
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Build
on:
pull_request:
push:
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Install Ghidra
run: |
curl -L "$GHIDRA_URL" -o ghidra.zip
mkdir ~/ghidra
unzip ghidra.zip -d ~/ghidra
rm ghidra.zip
env:
GHIDRA_URL: https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_10.3.2_build/ghidra_10.3.2_PUBLIC_20230711.zip
- name: Execute Gradle build
run: ./gradlew
env:
GHIDRA_INSTALL_DIR: /home/runner/ghidra/ghidra_10.3.2_PUBLIC/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./dist/*.zip