Write GitHub Actions scripts #40

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

30
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,30 @@
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
name: Gradle 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?
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
on:
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
push:
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
branches: [ dev, master ]
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
pull_request:
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?
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
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?
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
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
runs-on: ubuntu-latest
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
timeout-minutes: 40
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?
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
steps:
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/checkout@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
- 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
with:
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
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
with:
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
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

View File

@ -8,14 +8,26 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Run a one-line script
run: echo Hello, world!
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
- uses: DeLaGuardo/setup-graalvm@5.0
with:
graalvm: 22.0.0.2
java: java11
arch: amd64
- uses: actions/cache@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
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}

1
gradle.properties Normal file
View File

@ -0,0 +1 @@
kotlin.code.style=official

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists