-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor rebuild parts of CI for more reuse
- Loading branch information
1 parent
9545ca9
commit ac21497
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Trigger downstream builds | ||
on: | ||
workflow_call: | ||
secrets: | ||
token: | ||
required: true | ||
|
||
jobs: | ||
trigger-dep-build: | ||
name: Trigger downstream builds | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
repo: | ||
- 'FasterXML/jackson-dataformats-binary' | ||
- 'FasterXML/jackson-dataformats-text' | ||
- 'FasterXML/jackson-dataformat-xml' | ||
|
||
steps: | ||
- name: Repository dispatch | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
token: ${{ secrets.token }} | ||
repository: ${{ matrix.repo }} | ||
event-type: jackson-databind-pushed | ||
# Could push information on what was built but not yet | ||
client-payload: '{"version": "N/A" }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Re-build on jackson-core push | ||
on: | ||
repository_dispatch: | ||
types: [jackson-core-pushed] | ||
# just for testing | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
# Do we want wide matrix build? For now, limited | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java_version: ['8', '17', '21'] | ||
os: ['ubuntu-22.04'] | ||
env: | ||
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1" | ||
steps: | ||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
- name: Set up JDK | ||
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.java_version }} | ||
cache: 'maven' | ||
- name: Build and test | ||
run: ./mvnw -B -ff -ntp clean verify | ||
|
||
# And let's proceed recursively... | ||
trigger-downstream-builds: | ||
name: Trigger downstream builds | ||
uses: ./.github/workflows/trigger_dep_builds.yml | ||
with: | ||
secrets: | ||
token: ${{ secrets.REPO_DISPATCH }} |