Skip to content

Commit f4b6185

Browse files
authored
Simplified build script
1 parent 1f0ce14 commit f4b6185

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,15 @@ jobs:
3131
steps:
3232
- name: Prepare git
3333
run: git config --global core.autocrlf false
34-
34+
if: startsWith(matrix.os, 'windows')
35+
3536
- uses: actions/checkout@v2
3637
- name: Set up JDK 11
3738
uses: actions/setup-java@v2
3839
with:
3940
distribution: temurin
4041
java-version: 11
41-
42-
- name: Get Date
43-
id: get-date
44-
run: |
45-
echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
46-
shell: bash
47-
- name: Cache Maven Repository
48-
id: cache-maven
49-
uses: actions/cache@v2
50-
with:
51-
path: ~/.m2/repository
52-
# refresh cache every month to avoid unlimited growth
53-
key: maven-repo-${{ runner.os }}-${{ steps.get-date.outputs.date }}
42+
cache: 'maven'
5443

5544
- name: Build with Maven
5645
run: mvn -B formatter:validate verify --file pom.xml

0 commit comments

Comments
 (0)