Skip to content

Commit c4ec76e

Browse files
committed
Run Windows build on GitHub actions
Closes gh-39761
1 parent 8dff249 commit c4ec76e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/windows-build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Windows Build
2+
on:
3+
push:
4+
branches:
5+
- 3.1.x
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
jobs:
9+
build:
10+
name: 'Java 17 | Windows'
11+
runs-on: 'windows-latest'
12+
if: ${{ github.repository == 'spring-projects/spring-boot' }}
13+
steps:
14+
- name: Set up Java
15+
uses: actions/setup-java@v4
16+
with:
17+
distribution: 'liberica'
18+
java-version: 17
19+
- name: Configure git
20+
run: |
21+
git config --global core.autocrlf true
22+
git config --global core.longPaths true
23+
- name: Check out code
24+
uses: actions/checkout@v4
25+
- name: Set up Gradle
26+
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
27+
with:
28+
cache-read-only: false
29+
- name: Stop Docker service
30+
run: Stop-Service -name Docker
31+
- name: Build
32+
env:
33+
CI: 'true'
34+
GRADLE_ENTERPRISE_URL: 'https://ge.spring.io'
35+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
36+
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
37+
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
38+
run: ./gradlew '-Dorg.gradle.internal.launcher.welcomeMessageEnabled=false' --no-daemon build

0 commit comments

Comments
 (0)