From 3c8e3333bdecbb52a70d0d3eb34610404b321a9a Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 26 Jul 2023 12:13:06 +0200 Subject: [PATCH] Add workflow, thanks Ghidra-GameCube-Loader --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8314a01 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file