Skip to content

Commit 1fc4024

Browse files
committed
Enable recursive rebuild
1 parent a9ced29 commit 1fc4024

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed

.github/workflows/dep_build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Re-build on jackson-databind push
2+
on:
3+
repository_dispatch:
4+
types: [jackson-databind-pushed]
5+
# just for testing
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
# Do we want wide matrix build? For now, limited
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
java_version: ['8', '17', '21']
19+
os: ['ubuntu-22.04']
20+
env:
21+
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
22+
steps:
23+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
24+
- name: Set up JDK
25+
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
26+
with:
27+
distribution: 'temurin'
28+
java-version: ${{ matrix.java_version }}
29+
cache: 'maven'
30+
- name: Build and test
31+
run: ./mvnw -B -ff -ntp clean verify
32+
33+
# No recursive rebuild (yet?)

.github/workflows/main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ permissions:
2222

2323
jobs:
2424
build:
25-
runs-on: ${{ matrix.os }}
25+
runs-on: 'ubuntu-22.04'
2626
strategy:
2727
fail-fast: false
2828
matrix:
2929
java_version: ['8', '11', '17', '21', '22']
3030
# kotlin-reflect 1.8.2x has a bug and some tests fail, so we are downgrading to 1.8.10.
3131
# kotlin-reflect 2.0.0-Beta5 is not used because of KT-67209
32-
kotlin_version: ['1.7.22', '1.8.10', '1.9.23', '2.0.0-Beta4']
33-
os: ['ubuntu-20.04']
32+
kotlin_version: ['1.7.22', '1.8.10', '1.9.23', '2.0.0-RC2']
33+
include:
34+
- java_version: '8'
35+
kotlin_version: '1.7.22'
36+
release_build: 'R'
3437
env:
3538
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
3639
steps:
@@ -58,7 +61,7 @@ jobs:
5861
id: projectVersion
5962
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
6063
- name: Deploy snapshot
61-
if: github.event_name != 'pull_request' && matrix.java_version == '8' && matrix.kotlin_version == '1.7.22' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
64+
if: ${{ github.event_name != 'pull_request' && matrix.release_build && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
6265
env:
6366
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
6467
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}

0 commit comments

Comments
 (0)