Skip to content

Commit

Permalink
CI: Update gradle-action (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordond authored Nov 12, 2024
1 parent 1456bcc commit dd9aa40
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 44 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,16 @@ jobs:
distribution: adopt

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

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

- name: Binary Compatibility Validation
run: ./gradlew apiCheck --scan

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

build:
strategy:
Expand All @@ -66,20 +70,12 @@ jobs:
java-version: 17
distribution: adopt

- name: Cache Konan
uses: actions/cache@v4
if: startsWith(matrix.config.os, 'macos')
with:
path: |
~/.konan/caches
~/.konan/dependencies
~/.konan/kotlin-native-prebuilt-macos-*
key: ${{ runner.os }}-konan-${{ hashFiles('**/gradle/libs.versions.toml') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v4

- name: Build ${{ matrix.config.target }} targets
continue-on-error: ${{ matrix.config.continueOnError }}
uses: gradle/gradle-build-action@v3
with:
arguments: ${{ matrix.config.tasks }} --scan
run: ./gradlew ${{ matrix.config.tasks }} --scan
35 changes: 9 additions & 26 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,11 @@ 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: Cache Konan
uses: actions/cache@v4
with:
path: |
~/.konan/caches
~/.konan/dependencies
~/.konan/kotlin-native-prebuilt-macos-*
key: ${{ runner.os }}-konan-${{ hashFiles('**/gradle/libs.versions.toml') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

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

- name: Deploy to Sonatype
run: |
Expand Down Expand Up @@ -82,19 +64,20 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: setup-java
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: adopt

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

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

- name: Generate documentation
uses: gradle/gradle-build-action@v3
with:
arguments: dokkaHtmlMultiModule
run: ./gradlew dokkaHtmlMultiModule --no-configuration-cache

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
2 changes: 2 additions & 0 deletions grid/api/android/grid.api
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ public final class com/dragselectcompose/grid/LazyDragSelectGridItemScope {
public abstract interface class com/dragselectcompose/grid/LazyDragSelectGridScope {
public abstract fun item (Ljava/lang/Object;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlin/jvm/functions/Function3;)V
public abstract fun items (Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function4;)V
public abstract fun itemsIndexed (Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function5;)V
}

public final class com/dragselectcompose/grid/LazyDragSelectGridScope$DefaultImpls {
public static synthetic fun item$default (Lcom/dragselectcompose/grid/LazyDragSelectGridScope;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)V
public static synthetic fun items$default (Lcom/dragselectcompose/grid/LazyDragSelectGridScope;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function4;ILjava/lang/Object;)V
public static synthetic fun itemsIndexed$default (Lcom/dragselectcompose/grid/LazyDragSelectGridScope;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function5;ILjava/lang/Object;)V
}

public final class com/dragselectcompose/grid/LazyDragSelectHorizontalGridKt {
Expand Down
2 changes: 2 additions & 0 deletions grid/api/desktop/grid.api
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ public final class com/dragselectcompose/grid/LazyDragSelectGridItemScope {
public abstract interface class com/dragselectcompose/grid/LazyDragSelectGridScope {
public abstract fun item (Ljava/lang/Object;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlin/jvm/functions/Function3;)V
public abstract fun items (Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function4;)V
public abstract fun itemsIndexed (Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function5;)V
}

public final class com/dragselectcompose/grid/LazyDragSelectGridScope$DefaultImpls {
public static synthetic fun item$default (Lcom/dragselectcompose/grid/LazyDragSelectGridScope;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)V
public static synthetic fun items$default (Lcom/dragselectcompose/grid/LazyDragSelectGridScope;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function4;ILjava/lang/Object;)V
public static synthetic fun itemsIndexed$default (Lcom/dragselectcompose/grid/LazyDragSelectGridScope;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function5;ILjava/lang/Object;)V
}

public final class com/dragselectcompose/grid/LazyDragSelectHorizontalGridKt {
Expand Down

0 comments on commit dd9aa40

Please sign in to comment.