Skip to content

Commit

Permalink
Enable recursive rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 8, 2024
1 parent a9ced29 commit 1fc4024
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/dep_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Re-build on jackson-databind push
on:
repository_dispatch:
types: [jackson-databind-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

# No recursive rebuild (yet?)
11 changes: 7 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ permissions:

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

0 comments on commit 1fc4024

Please sign in to comment.