Apply cache to github workflow
This commit is contained in:
parent
e71dd81462
commit
90fd2f0716
10
.github/workflows/gradle.yml
vendored
10
.github/workflows/gradle.yml
vendored
@ -22,6 +22,16 @@ jobs:
|
||||
java-version: 1.8
|
||||
- name: Clean
|
||||
run: yes | rm -rf ./arclight-coremod/build/libs
|
||||
- name: Cache Gradle User Files
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.gradle
|
||||
key: ${{ runner.os }}-gradle-user-home
|
||||
- name: Cache Gradle Files
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ./.gradle
|
||||
key: ${{ runner.os }}-gradle-file
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Build with Gradle
|
||||
|
||||
@ -6,7 +6,7 @@ cache:
|
||||
- ./.gradle
|
||||
build_script:
|
||||
- cmd: |
|
||||
del /S /Q arclight-coremod\build\libs
|
||||
IF EXIST arclight-coremod\build\libs ( del /S /Q arclight-coremod\build\libs )
|
||||
gradlew build --no-daemon -i
|
||||
test: off
|
||||
artifacts:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user