Skip to content

refactor: all the things #196

refactor: all the things

refactor: all the things #196

Workflow file for this run

name: "ci"
on:
push:
branches:
- "*"
tags:
- "v*"
pull_request:
jobs:
spotless:
runs-on: ubuntu-latest
steps:
-
name: "Checkout"
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
-
name: "Setup JDK"
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
-
name: "Setup Ghidra"
uses: er28-0652/setup-ghidra@master
with:
version: "11.0"
-
name: "Run spotless"
run: gradle spotlessCheck
build:
runs-on: ubuntu-latest
permissions:
checks: "write"
strategy:
fail-fast: false
matrix:
ghidra:
- "11.1"
steps:
-
name: "Checkout"
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
-
name: "Setup JDK"
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
-
name: "Setup Ghidra"
uses: er28-0652/setup-ghidra@master
with:
version: ${{ matrix.ghidra }}
-
name: "Build extension"
run: gradle buildExtension
-
name: "Upload artifacts"
uses: actions/upload-artifact@v3
with:
path: "dist/*"
if-no-files-found: "error"
if: ${{ !cancelled() }}
-
name: "Run tests"
uses: coactions/setup-xvfb@v1
with:
run: gradle test jacocoTestReport
-
name: "Upload test results"
uses: actions/upload-artifact@v3
with:
name: "test-results (${{ matrix.ghidra }})"
path: "build/test-results/test/*.xml"
if-no-files-found: "error"
if: ${{ !cancelled() }}
-
name: "Upload reports"
uses: actions/upload-artifact@v3
with:
name: "reports (${{ matrix.ghidra }})"
path: "build/reports/*"
if-no-files-found: "error"
if: ${{ !cancelled() }}
release:
if: startsWith(github.ref, 'refs/tags/v')
needs:
- "build"
runs-on: ubuntu-latest
permissions:
contents: "write"
steps:
-
name: "Checkout"
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
-
name: "Setup JDK"
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
java-package: "jre"
-
name: "Download artifacts"
uses: actions/download-artifact@v3
with:
name: "artifact"
path: "dist/"
-
name: "Generate release notes"
run: ./developer_scripts/generate-release-notes.sh | tee release-notes.md
-
name: "GitHub release"
uses: ncipollo/release-action@v1.12.0
with:
artifacts: "dist/*"
draft: true
bodyFile: "release-notes.md"