Sigh.... this is mildly annoying
@@ -14,6 +14,13 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: recursive
+ - uses: actions/cache@v2
+ with:
+ path: |
+ ~/.gradle/caches
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
+ restore-keys: |
+ ${{ runner.os }}-gradle-
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
@@ -22,16 +29,15 @@ jobs:
run: chmod +x gradlew
- name: run number with offset
env:
- NUM: ${{ GITHUB_RUN_NUMBER }}
+ NUM: ${{ github.GITHUB_RUN_NUMBER }}
run: |
echo ::set-env name=BUILD_NUMBER::$(($NUM+93))
- - run: echo BUILD_NUMBER
- name: Build with Gradle
run: ./gradlew clean build
env:
CI_SYSTEM: Github Actions
- GIT_COMMIT: ${{ GITHUB_SHA }}
- GIT_BRANCH: ${{ GITHUB_REF }}
+ GIT_COMMIT: ${{ github.GITHUB_SHA }}
+ GIT_BRANCH: ${{ github.GITHUB_REF }}
- name: Add artifacts to build
uses: actions/upload-artifact@v2
with:
