Write GitHub Actions scripts #40

Merged
CommanderTvis merged 7 commits from commandertvis/ga into dev 2022-03-16 11:31:43 +03:00
2 changed files with 11 additions and 29 deletions
Showing only changes of commit b150fd5fd3 - Show all commits

View File

@ -12,19 +12,10 @@ jobs:
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
steps:
- uses: actions/checkout@v2
- uses: DeLaGuardo/setup-graalvm@5.0
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
- uses: actions/setup-java@v2.5.0
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
with:
graalvm: 22.0.0.2
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
java: java11
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
arch: amd64
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
- uses: actions/cache@v2
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
java-version: 11
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
distribution: liberica
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
- uses: gradle/gradle-build-action@v2
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
with:
path: |
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
~/.gradle/caches
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
~/.gradle/wrapper
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
restore-keys: |
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
${{ runner.os }}-gradle-
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
- uses: gradle/wrapper-validation-action@v1.0.4
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
- name: Build
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
run: ./gradlew build --build-cache --no-daemon --stacktrace
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
arguments: build
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20

altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
altavir commented 2022-03-14 13:43:43 +03:00 (Migrated from github.com)
Review

Why do you insist on using manual caches?

Why do you insist on using manual caches?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
CommanderTvis commented 2022-03-14 14:08:08 +03:00 (Migrated from github.com)
Review

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?

What is the alternative for them? https://github.com/burrunan/gradle-cache-action ?
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20
altavir commented 2022-03-14 14:28:16 +03:00 (Migrated from github.com)
Review
https://github.com/mipt-npm/visionforge/blob/c6258e72fb96e38c5428690a25a87b21bfaaa7a8/.github/workflows/build.yml#L20

View File

@ -12,22 +12,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: DeLaGuardo/setup-graalvm@5.0
- uses: actions/setup-java@v2.5.0
with:
graalvm: 22.0.0.2
java: java11
arch: amd64
- uses: actions/cache@v2
java-version: 11
distribution: liberica
- uses: gradle/gradle-build-action@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: gradle/wrapper-validation-action@v1.0.4
- name: Publish artifacts
run: >
./gradlew publishAllPublicationsToSpaceRepository --no-daemon --build-cache
arguments: |
publishAllPublicationsToSpaceRepository
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}