Skip to content

Commit bcc0242

Browse files
jeongmallrobrampdependabot[bot]
authored
Add -map option (#362)
* feat: Add -map option * chore: rename master branch to main in CI workflow * Bump org.apache.maven.plugins:maven-release-plugin from 3.0.1 to 3.3.1 (#380) Bumps [org.apache.maven.plugins:maven-release-plugin](https://github.com/apache/maven-release) from 3.0.1 to 3.3.1. - [Release notes](https://github.com/apache/maven-release/releases) - [Commits](apache/maven-release@maven-release-3.0.1...maven-release-3.3.1) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-release-plugin dependency-version: 3.3.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump org.apache.maven.plugins:maven-pmd-plugin from 3.21.2 to 3.28.0 (#379) Bumps [org.apache.maven.plugins:maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.21.2 to 3.28.0. - [Release notes](https://github.com/apache/maven-pmd-plugin/releases) - [Commits](apache/maven-pmd-plugin@maven-pmd-plugin-3.21.2...maven-pmd-plugin-3.28.0) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-pmd-plugin dependency-version: 3.28.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump org.codehaus.mojo:extra-enforcer-rules from 1.8.0 to 1.12.0 (#378) Bumps [org.codehaus.mojo:extra-enforcer-rules](https://github.com/mojohaus/extra-enforcer-rules) from 1.8.0 to 1.12.0. - [Release notes](https://github.com/mojohaus/extra-enforcer-rules/releases) - [Commits](mojohaus/extra-enforcer-rules@1.8.0...1.12.0) --- updated-dependencies: - dependency-name: org.codehaus.mojo:extra-enforcer-rules dependency-version: 1.12.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump org.apache.maven.plugins:maven-install-plugin from 3.1.1 to 3.1.4 (#376) Bumps [org.apache.maven.plugins:maven-install-plugin](https://github.com/apache/maven-install-plugin) from 3.1.1 to 3.1.4. - [Release notes](https://github.com/apache/maven-install-plugin/releases) - [Commits](apache/maven-install-plugin@maven-install-plugin-3.1.1...maven-install-plugin-3.1.4) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-install-plugin dependency-version: 3.1.4 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ci: split workflows into test and release - test.yml: CI only (push to main, PRs) - release.yml: publish + javadoc (tag push, manual dispatch) - Automate javadoc publishing to GitHub Pages via Actions - Support manual dispatch for one-off javadoc deploys * chore: simplify pom.xml Remove dead/obsolete plugins and config: - maven-release-plugin (replaced by GitHub Actions) - cobertura-maven-plugin (abandoned, incompatible with modern Java) - coveralls-maven-plugin (abandoned, not used in CI) - formatter-maven-plugin (replaced by fmt-maven-plugin) - maven-scm-publish-plugin (replaced by GitHub Actions Pages deploy) - maven-site-plugin (no longer running mvn site) - Entire <reporting> section (broken/stale plugins) - Java 8 profile (minimum is now Java 11) - Java 9+ profile (inlined maven.compiler.release into properties) - distributionManagement/snapshotRepository (unused with central-publishing-maven-plugin) - Duplicate central-publishing-maven-plugin version --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Andrew Brampton <github@bramp.net> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 4753a38 commit bcc0242

5 files changed

Lines changed: 142 additions & 372 deletions

File tree

.github/workflows/release.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: [ "ffmpeg-*" ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
# Only run tests on tag push (manual dispatch skips to javadoc)
11+
if: github.event_name == 'push'
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
java-version: [11, 17, 21]
17+
18+
name: JDK ${{ matrix.java-version }}
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Set up FFmpeg
24+
uses: FedericoCarboni/setup-ffmpeg@v3
25+
with:
26+
ffmpeg-version: release
27+
28+
- name: Set up JDK ${{ matrix.java-version }}
29+
uses: actions/setup-java@v4
30+
with:
31+
java-version: ${{ matrix.java-version }}
32+
distribution: 'temurin'
33+
cache: maven
34+
35+
- name: Test with Maven
36+
run: mvn --batch-mode verify -Dgpg.skip
37+
38+
publish:
39+
needs: test
40+
if: github.event_name == 'push'
41+
runs-on: ubuntu-latest
42+
environment: publish
43+
steps:
44+
- uses: actions/checkout@v4
45+
46+
- name: Set up JDK 21
47+
uses: actions/setup-java@v4
48+
with:
49+
java-version: '21'
50+
distribution: 'temurin'
51+
server-id: central
52+
server-username: CENTRAL_USERNAME
53+
server-password: CENTRAL_PASSWORD
54+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
55+
gpg-passphrase: GPG_PASSPHRASE
56+
cache: 'maven'
57+
58+
- name: Publish to Sonatype Central Portal
59+
run: |
60+
mvn clean deploy \
61+
-DskipTests=true \
62+
--no-transfer-progress \
63+
-Dgpg.skip=false
64+
env:
65+
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
66+
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
67+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
68+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
69+
70+
- name: Create GitHub Release
71+
uses: softprops/action-gh-release@v2
72+
with:
73+
generate_release_notes: true
74+
75+
javadoc:
76+
needs: [test, publish]
77+
# Run even when test/publish are skipped (manual dispatch)
78+
if: always() && !failure() && !cancelled()
79+
runs-on: ubuntu-latest
80+
permissions:
81+
pages: write
82+
id-token: write
83+
environment:
84+
name: github-pages
85+
url: ${{ steps.deployment.outputs.page_url }}
86+
steps:
87+
- uses: actions/checkout@v4
88+
89+
- name: Set up JDK 21
90+
uses: actions/setup-java@v4
91+
with:
92+
java-version: '21'
93+
distribution: 'temurin'
94+
cache: 'maven'
95+
96+
- name: Generate Javadoc
97+
run: mvn javadoc:javadoc --no-transfer-progress -Dgpg.skip
98+
99+
- name: Upload Pages artifact
100+
uses: actions/upload-pages-artifact@v3
101+
with:
102+
path: target/site/apidocs
103+
104+
- name: Deploy to GitHub Pages
105+
id: deployment
106+
uses: actions/deploy-pages@v4

.github/workflows/test.yml

Lines changed: 5 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
name: Java CI with Maven
1+
name: Test
22

33
on:
44
push:
5-
branches: [ "master" ]
6-
tags: [ "ffmpeg-*" ]
5+
branches: [ "main" ]
76
pull_request:
8-
branches: [ "master" ]
9-
workflow_dispatch:
10-
inputs:
11-
skipTests:
12-
description: 'Skip tests during publish'
13-
required: false
14-
default: 'false'
7+
branches: [ "main" ]
158

169
jobs:
1710
test:
@@ -39,56 +32,9 @@ jobs:
3932
cache: maven
4033

4134
- name: Test with Maven
42-
run: mvn --batch-mode verify -Dgpg.skip -DskipTests=${{ github.event.inputs.skipTests || 'false' }}
35+
run: mvn --batch-mode verify -Dgpg.skip
4336

4437
- name: Update dependency graph
45-
if: matrix.java-version == '21' && github.event_name == 'push' && github.ref == 'refs/heads/master'
38+
if: matrix.java-version == '21' && github.event_name == 'push'
4639
uses: advanced-security/maven-dependency-submission-action@v4
4740
continue-on-error: true
48-
49-
publish:
50-
needs: test
51-
# Only publish on tags (ffmpeg-*) or manual dispatch
52-
# and only if it's not a pull request
53-
if: |
54-
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/ffmpeg-')) ||
55-
(github.event_name == 'workflow_dispatch')
56-
runs-on: ubuntu-latest
57-
environment: publish
58-
steps:
59-
- uses: actions/checkout@v4
60-
61-
- name: Set up FFmpeg
62-
uses: FedericoCarboni/setup-ffmpeg@v3
63-
with:
64-
ffmpeg-version: release
65-
66-
- name: Set up JDK 21
67-
uses: actions/setup-java@v4
68-
with:
69-
java-version: '21'
70-
distribution: 'temurin'
71-
server-id: central
72-
server-username: CENTRAL_USERNAME
73-
server-password: CENTRAL_PASSWORD
74-
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
75-
gpg-passphrase: GPG_PASSPHRASE
76-
cache: 'maven'
77-
78-
- name: Publish to Sonatype Central Portal
79-
run: |
80-
mvn clean deploy \
81-
-DskipTests=true \
82-
--no-transfer-progress \
83-
-P java11plus
84-
env:
85-
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
86-
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
87-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
88-
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
89-
90-
- name: Create GitHub Release
91-
if: startsWith(github.ref, 'refs/tags/ffmpeg-')
92-
uses: softprops/action-gh-release@v2
93-
with:
94-
generate_release_notes: true

0 commit comments

Comments
 (0)