2024-03-01 02:14:58 +08:00
|
|
|
name: CI
|
2024-02-27 00:48:41 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-06-21 02:46:14 +08:00
|
|
|
- '3.3.x'
|
2024-02-27 00:48:41 +08:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
2024-03-01 02:14:58 +08:00
|
|
|
ci:
|
2024-03-28 03:53:07 +08:00
|
|
|
name: '${{ matrix.os.name}} | Java ${{ matrix.java.version}}'
|
|
|
|
runs-on: ${{ matrix.os.id }}
|
2024-02-27 00:48:41 +08:00
|
|
|
if: ${{ github.repository == 'spring-projects/spring-boot' }}
|
2024-03-01 02:14:58 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
2024-05-13 19:08:15 +08:00
|
|
|
- id: ubuntu-latest
|
2024-03-01 02:14:58 +08:00
|
|
|
name: Linux
|
|
|
|
- id: windows-latest
|
|
|
|
name: Windows
|
|
|
|
java:
|
|
|
|
- version: 17
|
|
|
|
toolchain: false
|
|
|
|
- version: 21
|
|
|
|
toolchain: true
|
2024-03-04 18:33:17 +08:00
|
|
|
- version: 22
|
2024-03-04 18:07:28 +08:00
|
|
|
toolchain: true
|
2024-03-01 02:14:58 +08:00
|
|
|
exclude:
|
|
|
|
- os:
|
|
|
|
name: Linux
|
|
|
|
java:
|
|
|
|
version: 17
|
2024-02-27 00:48:41 +08:00
|
|
|
steps:
|
2024-03-01 02:14:58 +08:00
|
|
|
- name: Prepare Windows runner
|
|
|
|
if: ${{ runner.os == 'Windows' }}
|
2024-02-27 00:48:41 +08:00
|
|
|
run: |
|
|
|
|
git config --global core.autocrlf true
|
|
|
|
git config --global core.longPaths true
|
2024-03-01 02:14:58 +08:00
|
|
|
Stop-Service -name Docker
|
2024-03-28 03:36:32 +08:00
|
|
|
- name: Check Out Code
|
2024-02-27 00:48:41 +08:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build
|
2024-04-16 00:16:03 +08:00
|
|
|
id: build
|
2024-04-15 22:36:36 +08:00
|
|
|
uses: ./.github/actions/build
|
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.java.version }}
|
|
|
|
java-toolchain: ${{ matrix.java.toolchain }}
|
2024-04-26 16:04:20 +08:00
|
|
|
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
|
2024-03-28 03:36:32 +08:00
|
|
|
- name: Send Notification
|
2024-02-28 01:07:01 +08:00
|
|
|
uses: ./.github/actions/send-notification
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
|
2024-02-28 19:46:47 +08:00
|
|
|
status: ${{ job.status }}
|
2024-02-28 01:07:01 +08:00
|
|
|
build-scan-url: ${{ steps.build.outputs.build-scan-url }}
|
2024-03-01 05:08:09 +08:00
|
|
|
run-name: ${{ format('{0} | {1} | Java {2}', github.ref_name, matrix.os.name, matrix.java.version) }}
|