forked from kscience/kmath
Use gradle-build-action
This commit is contained in:
parent
bae465fe86
commit
97a320c9ef
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@ -18,15 +18,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: liberica
|
distribution: liberica
|
||||||
- name: Cache gradle
|
|
||||||
uses: actions/cache@v3.0.1
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
- name: Cache konan
|
- name: Cache konan
|
||||||
uses: actions/cache@v3.0.1
|
uses: actions/cache@v3.0.1
|
||||||
with:
|
with:
|
||||||
@ -36,5 +27,6 @@ jobs:
|
|||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
- name: Gradle Wrapper Validation
|
- name: Gradle Wrapper Validation
|
||||||
uses: gradle/wrapper-validation-action@v1.0.4
|
uses: gradle/wrapper-validation-action@v1.0.4
|
||||||
- name: Build
|
- uses: gradle/gradle-build-action@v2.1.5
|
||||||
run: ./gradlew build --build-cache --no-daemon --stacktrace
|
with:
|
||||||
|
arguments: build
|
||||||
|
13
.github/workflows/pages.yml
vendored
13
.github/workflows/pages.yml
vendored
@ -14,15 +14,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: liberica
|
distribution: liberica
|
||||||
- name: Cache gradle
|
|
||||||
uses: actions/cache@v3.0.1
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
- name: Cache konan
|
- name: Cache konan
|
||||||
uses: actions/cache@v3.0.1
|
uses: actions/cache@v3.0.1
|
||||||
with:
|
with:
|
||||||
@ -30,7 +21,9 @@ jobs:
|
|||||||
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
|
- uses: gradle/gradle-build-action@v2.1.5
|
||||||
|
with:
|
||||||
|
arguments: dokkaHtmlMultiModule --no-parallel
|
||||||
- uses: JamesIves/github-pages-deploy-action@4.2.5
|
- uses: JamesIves/github-pages-deploy-action@4.2.5
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
|
34
.github/workflows/publish.yml
vendored
34
.github/workflows/publish.yml
vendored
@ -19,15 +19,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: liberica
|
distribution: liberica
|
||||||
- name: Cache gradle
|
|
||||||
uses: actions/cache@v3.0.1
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
- name: Cache konan
|
- name: Cache konan
|
||||||
uses: actions/cache@v3.0.1
|
uses: actions/cache@v3.0.1
|
||||||
with:
|
with:
|
||||||
@ -38,14 +29,21 @@ jobs:
|
|||||||
- 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
|
uses: gradle/gradle-build-action@v2.1.5
|
||||||
run: >
|
with:
|
||||||
./gradlew releaseAll --no-daemon --build-cache -Ppublishing.enabled=true
|
arguments: |
|
||||||
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
|
releaseAll
|
||||||
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
|
-Ppublishing.enabled=true
|
||||||
|
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
|
||||||
|
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
|
||||||
- name: Publish Mac Artifacts
|
- name: Publish Mac Artifacts
|
||||||
if: matrix.os == 'macOS-latest'
|
if: matrix.os == 'macOS-latest'
|
||||||
run: >
|
uses: gradle/gradle-build-action@v2.1.5
|
||||||
./gradlew releaseMacosX64 releaseIosArm64 releaseIosX64 release --no-daemon --build-cache
|
with:
|
||||||
-Ppublishing.enabled=true -Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
|
arguments: |
|
||||||
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
|
releaseMacosX64
|
||||||
|
releaseIosArm64
|
||||||
|
releaseIosX64
|
||||||
|
-Ppublishing.enabled=true
|
||||||
|
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
|
||||||
|
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
|
||||||
|
Loading…
Reference in New Issue
Block a user