Update GitHub actions

This commit is contained in:
Iaroslav Postovalov 2022-04-01 03:06:07 +07:00
parent 3277a99ed3
commit bae465fe86
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7
3 changed files with 24 additions and 15 deletions

View File

@ -13,13 +13,13 @@ jobs:
runs-on: ${{matrix.os}} runs-on: ${{matrix.os}}
timeout-minutes: 40 timeout-minutes: 40
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3.0.0
- uses: actions/setup-java@v2.5.0 - uses: actions/setup-java@v3.0.0
with: with:
java-version: 11 java-version: 11
distribution: liberica distribution: liberica
- name: Cache gradle - name: Cache gradle
uses: actions/cache@v2 uses: actions/cache@v3.0.1
with: with:
path: | path: |
~/.gradle/caches ~/.gradle/caches
@ -28,7 +28,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-gradle- ${{ runner.os }}-gradle-
- name: Cache konan - name: Cache konan
uses: actions/cache@v2 uses: actions/cache@v3.0.1
with: with:
path: ~/.konan path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}

View File

@ -9,19 +9,29 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 40 timeout-minutes: 40
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3.0.0
- uses: actions/setup-java@v2.5.0 - uses: actions/setup-java@v3.0.0
with: with:
java-version: 11 java-version: 11
distribution: liberica distribution: liberica
- uses: actions/cache@v2 - name: Cache gradle
uses: actions/cache@v3.0.1
with: with:
path: ~/.gradle/caches path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache konan
uses: actions/cache@v3.0.1
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: | restore-keys: |
${{ runner.os }}-gradle- ${{ runner.os }}-gradle-
- run: ./gradlew dokkaHtmlMultiModule --build-cache --no-daemon --no-parallel --stacktrace - run: ./gradlew dokkaHtmlMultiModule --build-cache --no-daemon --no-parallel --stacktrace
- uses: JamesIves/github-pages-deploy-action@4.1.0 - uses: JamesIves/github-pages-deploy-action@4.2.5
with: with:
branch: gh-pages branch: gh-pages
folder: build/dokka/htmlMultiModule folder: build/dokka/htmlMultiModule

View File

@ -14,13 +14,13 @@ jobs:
os: [ macOS-latest, windows-latest ] os: [ macOS-latest, windows-latest ]
runs-on: ${{matrix.os}} runs-on: ${{matrix.os}}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3.0.0
- uses: actions/setup-java@v2.5.0 - uses: actions/setup-java@v3.0.0
with: with:
java-version: 11 java-version: 11
distribution: liberica distribution: liberica
- name: Cache gradle - name: Cache gradle
uses: actions/cache@v2 uses: actions/cache@v3.0.1
with: with:
path: | path: |
~/.gradle/caches ~/.gradle/caches
@ -29,14 +29,13 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-gradle- ${{ runner.os }}-gradle-
- name: Cache konan - name: Cache konan
uses: actions/cache@v2 uses: actions/cache@v3.0.1
with: with:
path: ~/.konan path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: | restore-keys: |
${{ runner.os }}-gradle- ${{ runner.os }}-gradle-
- name: Gradle Wrapper Validation - uses: gradle/wrapper-validation-action@v1.0.4
uses: gradle/wrapper-validation-action@v1.0.4
- name: Publish Windows Artifacts - name: Publish Windows Artifacts
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
shell: cmd shell: cmd