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
|
java-version: 1.8
|
||||||
- name: Clean
|
- name: Clean
|
||||||
run: yes | rm -rf ./arclight-coremod/build/libs
|
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
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
|
|||||||
@ -6,7 +6,7 @@ cache:
|
|||||||
- ./.gradle
|
- ./.gradle
|
||||||
build_script:
|
build_script:
|
||||||
- cmd: |
|
- 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
|
gradlew build --no-daemon -i
|
||||||
test: off
|
test: off
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user