Skip to content

wip MIPS PIC

wip MIPS PIC #204

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@v4
with:
fetch-depth: 0
fetch-tags: true
-
name: "Setup JDK"
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
-
name: "Setup Ghidra"
uses: antoniovazquezblanco/setup-ghidra@v2.0.5
with:
version: "11.1"
-
name: "Run spotless"
run: gradle spotlessCheck
build:
runs-on: ubuntu-latest
permissions:
checks: "write"
strategy:
fail-fast: false
matrix:
ghidra:
- "11.1"
- "11.1.1"
- "11.1.2"
steps:
-
name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
-
name: "Setup JDK"
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
-
name: "Setup Ghidra"
uses: antoniovazquezblanco/setup-ghidra@v2.0.5
with:
version: ${{ matrix.ghidra }}
-
name: "Build extension"
run: gradle buildExtension
-
name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: "plugin (${{ matrix.ghidra }})"
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@v4
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@v4
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"
strategy:
fail-fast: false
matrix:
ghidra:
- "11.1"
- "11.1.1"
- "11.1.2"
steps:
-
name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
-
name: "Setup JDK"
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
java-package: "jre"
-
name: "Download artifacts"
uses: actions/download-artifact@v4
with:
name: "plugin (${{ matrix.ghidra }})"
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"