-
-
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.
- Loading branch information
1 parent
883c020
commit 495e2fd
Showing
6 changed files
with
99 additions
and
6 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,41 @@ | ||
name: Re-build on jackson-core push | ||
on: | ||
repository_dispatch: | ||
types: [jackson-core-pushed-v3] | ||
# 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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
with: | ||
ref: master | ||
- 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 verify | ||
|
||
# And let's proceed recursively... | ||
trigger-dep-build: | ||
name: Trigger downstream builds | ||
needs: [build] | ||
uses: ./.github/workflows/trigger_dep_builds_v3.yml | ||
secrets: | ||
token: ${{ secrets.REPO_DISPATCH }} |
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
4 changes: 2 additions & 2 deletions
4
.github/workflows/trigger_dep_builds.yml → .github/workflows/trigger_dep_builds_v2.yml
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,40 @@ | ||
name: Trigger downstream Jackson 3.x builds | ||
on: | ||
workflow_call: | ||
secrets: | ||
token: | ||
required: true | ||
|
||
jobs: | ||
trigger-dep-build-v3: | ||
name: Trigger downstream builds | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
# Won't matter a lot but try to make dispatching non-parallel | ||
max-parallel: 1 | ||
matrix: | ||
repo: | ||
- 'FasterXML/jackson-modules-base' | ||
- 'FasterXML/jackson-dataformats-binary' | ||
- 'FasterXML/jackson-dataformats-text' | ||
- 'FasterXML/jackson-dataformat-xml' | ||
- 'FasterXML/jackson-datatypes-collections' | ||
- 'FasterXML/jackson-datatypes-misc' | ||
- 'FasterXML/jackson-module-kotlin' | ||
- 'FasterXML/jackson-module-scala' | ||
- 'FasterXML/jackson-integration-tests' | ||
|
||
steps: | ||
- name: Repository dispatch | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
token: ${{ secrets.token }} | ||
repository: ${{ matrix.repo }} | ||
event-type: jackson-databind-pushed-v3 | ||
# Could push information on what was built but not yet | ||
client-payload: '{"version": "N/A" }' | ||
- name: Delay between dispatches | ||
run: sleep 10s | ||
shell: bash |
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 |
---|---|---|
|
@@ -23,3 +23,6 @@ syntax: glob | |
*.ipr | ||
*.iws | ||
/target | ||
|
||
# Other/local | ||
/gh-workflows |