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 47 additions and 1 deletions

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

@ -0,0 +1,21 @@
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: 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:
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:
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

24
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Gradle publish
on:
workflow_dispatch:
release:
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2.5.0
with:
java-version: 11
distribution: liberica
- uses: gradle/gradle-build-action@v2
with:
arguments: |
publishAllPublicationsToSpaceRepository
-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