Skip to content

Commit

Permalink
Merge pull request #34 from alllex/github-actions-update
Browse files Browse the repository at this point in the history
Update github actions
  • Loading branch information
alllex authored Dec 4, 2024
2 parents 99dd16d + aafc452 commit ebf2697
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Check

on:
workflow_dispatch: {}
pull_request: {}
workflow_dispatch: { }
pull_request: { }
push:
branches: [ main ]
tags: [ 'v*' ]
Expand All @@ -19,22 +19,22 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version-file: .github/workflows/.ci-java-version

- name: Cache Kotlin Konan
id: cache-kotlin-konan
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.konan/**/*
key: kotlin-konan-${{ runner.os }}

- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
arguments: check
- uses: gradle/actions/setup-gradle@v4

- name: Check
run: ./gradlew check
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release

on:
workflow_dispatch: {}
workflow_dispatch: { }
push:
tags:
- 'v*'
Expand All @@ -18,25 +18,23 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version-file: .github/workflows/.ci-java-version

- name: Cache Kotlin Konan
id: cache-kotlin-konan
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.konan/**/*
key: kotlin-konan-${{ runner.os }}

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
uses: gradle/actions/setup-gradle@v4

- name: Publish the shared and macOS artifacts
if: matrix.os == 'macOS-latest'
Expand Down
11 changes: 7 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ plugins {
}

develocity {
buildScan.termsOfUseUrl = "https://gradle.com/terms-of-service"
buildScan.termsOfUseAgree = "yes"
val ci = providers.environmentVariable("CI").orNull != null
buildScan.publishing { onlyIf { ci } }
buildScan {
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"
val ci = providers.environmentVariable("CI").orNull != null
publishing { onlyIf { ci } }
obfuscation { externalProcessName { "non-build-process" } }
}
}

rootProject.name = "parsus"
Expand Down

0 comments on commit ebf2697

Please sign in to comment.