Skip to content

Commit 5f4213b

Browse files
committed
WIP
1 parent 787a584 commit 5f4213b

File tree

2 files changed

+66
-43
lines changed

2 files changed

+66
-43
lines changed

.github/workflows/release.yml

Lines changed: 57 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,68 @@
11
name: release
22
on:
33
workflow_dispatch: # allow to manually trigger this workflow
4-
# push:
5-
# branches:
4+
push:
5+
branches:
6+
- michael/github-actions-debug2
67
# - master
78
jobs:
8-
build_natives:
9-
runs-on: ${{matrix.os}}
10-
strategy:
11-
matrix:
12-
os: [macos-latest, windows-latest]
13-
steps:
14-
- uses: actions/checkout@v4
15-
with:
16-
fetch-depth: 0
17-
- name: Set up JDK
18-
uses: actions/setup-java@v4
19-
with:
20-
distribution: temurin
21-
java-version: 21
22-
- name: Setup Gradle
23-
uses: gradle/actions/setup-gradle@v4
24-
- run: gradle -I gradle/support/fetchDependencies.gradle buildNatives
25-
- name: Upload platform-specific binaries
26-
uses: actions/upload-artifact@v4
27-
with:
28-
name: ${{matrix.os}}
29-
path: |
30-
GPL/DemanglerGnu/build/os/*
31-
Ghidra/Features/Decompiler/build/os/*
32-
Ghidra/Features/FileFormats/build/os/*
9+
# build_natives:
10+
# runs-on: ${{matrix.os}}
11+
# strategy:
12+
# matrix:
13+
# os: [macos-latest, windows-latest]
14+
# steps:
15+
# - uses: actions/checkout@v4
16+
# with:
17+
# fetch-depth: 0
18+
# - name: Set up JDK
19+
# uses: actions/setup-java@v4
20+
# with:
21+
# distribution: temurin
22+
# java-version: 21
23+
# - name: Setup Gradle
24+
# uses: gradle/actions/setup-gradle@v4
25+
# - run: gradle -I gradle/support/fetchDependencies.gradle buildNatives
26+
# - name: Upload platform-specific binaries
27+
# uses: actions/upload-artifact@v4
28+
# with:
29+
# name: ${{matrix.os}}
30+
# path: |
31+
# GPL/DemanglerGnu/build/os/*
32+
# Ghidra/Features/Decompiler/build/os/*
33+
# Ghidra/Features/FileFormats/build/os/*
3334
build_ghidra:
34-
needs: build_natives
35+
# needs: build_natives
3536
runs-on: ubuntu-latest
3637
steps:
3738
- uses: actions/checkout@v4
3839
with:
3940
fetch-depth: 0
40-
- name: Set up JDK
41-
uses: actions/setup-java@v4
42-
with:
43-
distribution: temurin
44-
java-version: 21
45-
- name: Setup Gradle
46-
uses: gradle/actions/setup-gradle@v4
47-
- uses: actions/download-artifact@v4
48-
with:
49-
merge-multiple: true
50-
- run: git log -1 --pretty=format:%h
51-
- name: List native binaries
52-
run: tree GPL/DemanglerGnu/build/os Ghidra/Features/Decompiler/build/os Ghidra/Features/FileFormats/build/os
53-
- name: Build release ghidra, all the way to maven central
54-
run: ./ghidra-publish.sh --non-interactive
41+
# - name: Set up JDK
42+
# uses: actions/setup-java@v4
43+
# with:
44+
# distribution: temurin
45+
# java-version: 21
46+
# - name: Setup Gradle
47+
# uses: gradle/actions/setup-gradle@v4
48+
# - uses: actions/download-artifact@v4
49+
# with:
50+
# merge-multiple: true
51+
# - run: git log -1 --pretty=format:%h
52+
# - name: List native binaries
53+
# run: tree GPL/DemanglerGnu/build/os Ghidra/Features/Decompiler/build/os Ghidra/Features/FileFormats/build/os
54+
- name: import PGP key for signing
55+
run: echo $PGP_SECRET | base64 --decode | gpg --batch --import
56+
env:
57+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
58+
- name: configure username/password in maven settings.xml
59+
run: |
60+
mkdir -p ~/.m2
61+
cp settings.xml.template ~/.m2/settings.xml
62+
sed -i s#__USERNAME__#${{SONATYPE_USERNAME}}# ~/.m2/settings.xml
63+
sed -i s#__PASSWORD__#${{SONATYPE_PASSWORD}}# ~/.m2/settings.xml
64+
env:
65+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
66+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
67+
# - name: Build release ghidra, all the way to maven central
68+
# run: ./ghidra-publish.sh --non-interactive

settings.xml.template

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<settings>
2+
<servers>
3+
<server>
4+
5+
<id>sonatype-central-joern</id>
6+
<username>__USERNAME__</username>
7+
<password>__PASSWORD__</password>
8+
</server>
9+
</servers>

0 commit comments

Comments
 (0)