Skip to content

Commit efa53cd

Browse files
committed
update GH actions scripts
1 parent 85c5e1a commit efa53cd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,28 @@ jobs:
1515
17 # Minimum supported by Minecraft
1616
]
1717
# and run on both Linux and Windows
18-
os: [ubuntu-20.04, windows-latest]
18+
os: [ubuntu-latest, windows-latest]
1919
runs-on: ${{ matrix.os }}
2020
steps:
2121
- name: checkout repository
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
2525
- name: validate gradle wrapper
26-
uses: gradle/wrapper-validation-action@v1
26+
uses: gradle/actions/wrapper-validation@v4
2727
- name: setup jdk ${{ matrix.java }}
28-
uses: actions/setup-java@v1
28+
uses: actions/setup-java@v4
2929
with:
3030
java-version: ${{ matrix.java }}
31+
cache: 'gradle'
3132
- name: make gradle wrapper executable
3233
if: ${{ runner.os != 'Windows' }}
3334
run: chmod +x ./gradlew
3435
- name: build
3536
run: ./gradlew build
3637
- name: capture build artifacts
3738
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
38-
uses: actions/upload-artifact@v2
39+
uses: actions/upload-artifact@v4
3940
with:
4041
name: Artifacts
41-
path: build/libs/
42+
path: build/libs/

0 commit comments

Comments
 (0)