Skip to content

Commit

Permalink
update CI files for deprecated gradle actions (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordond authored Jun 5, 2024
1 parent 7389a3c commit 299d054
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,17 @@ jobs:
java-version: 17
distribution: adopt

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v3

- name: Binary Compatibility Validation
uses: gradle/actions/setup-gradle@v3
with:
arguments: apiCheck --scan
run: ./gradlew apiCheck --scan

- name: Lint
uses: gradle/actions/setup-gradle@v3
with:
arguments: lint --scan
run: ./gradlew lint --scan

build:
strategy:
Expand Down Expand Up @@ -82,8 +81,9 @@ jobs:
restore-keys: |
${{ runner.os }}-konan-
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build ${{ matrix.config.target }} targets
continue-on-error: ${{ matrix.config.continueOnError }}
uses: gradle/actions/setup-gradle@v3
with:
arguments: ${{ matrix.config.tasks }} --scan
run: ./gradlew ${{ matrix.config.tasks }} --scan
18 changes: 6 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,8 @@ jobs:
java-version: 17
distribution: adopt

- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v3
Expand Down Expand Up @@ -77,13 +70,14 @@ jobs:
java-version: 17
distribution: adopt

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v3

- name: Generate documentation
uses: gradle/actions/setup-gradle@v3
with:
arguments: dokkaHtmlMultiModule
run: ./gradlew dokkaHtmlMultiModule

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
Expand Down

0 comments on commit 299d054

Please sign in to comment.