Apply cache to github workflow

This commit is contained in:
IzzelAliz 2020-05-17 18:23:39 +08:00
parent e71dd81462
commit 90fd2f0716
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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: