|
1 | 1 | name: release |
2 | 2 | on: |
3 | 3 | workflow_dispatch: # allow to manually trigger this workflow |
4 | | - # push: |
5 | | - # branches: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - michael/github-actions-debug2 |
6 | 7 | # - master |
7 | 8 | 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/* |
33 | 34 | build_ghidra: |
34 | | - needs: build_natives |
| 35 | + # needs: build_natives |
35 | 36 | runs-on: ubuntu-latest |
36 | 37 | steps: |
37 | 38 | - uses: actions/checkout@v4 |
38 | 39 | with: |
39 | 40 | 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 |
0 commit comments