mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
try to shave 2min from the build
Signed-off-by: C10udburst <serek.lego@gmail.com>
This commit is contained in:
parent
df093d5e72
commit
8f511a8707
2 changed files with 19 additions and 19 deletions
21
.github/workflows/prerelease.yml
vendored
21
.github/workflows/prerelease.yml
vendored
|
@ -1,6 +1,8 @@
|
||||||
name: Pre-release
|
name: Pre-release
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "pre-release"
|
group: "pre-release"
|
||||||
|
@ -11,16 +13,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Run Gradle command
|
- name: Set up JDK 8
|
||||||
uses: Raul6469/android-gradle-action@2.0.0
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
script: assembleDebug
|
java-version: '8'
|
||||||
# In some cases, you may need to provide
|
distribution: 'adopt'
|
||||||
# Android licence agreement id
|
- name: Grant execute permission for gradlew
|
||||||
# You can find it on your own machine under `$ANDROID_HOME/license`,
|
run: chmod +x gradlew
|
||||||
# and add the file content as a GitHub secret named `$ANDROID_LICENCE`.
|
- name: Run Gradle
|
||||||
# android-licence: ${{ secrets.ANDROID_LICENCE }}
|
run: ./gradlew assembleDebug
|
||||||
|
|
||||||
- name: Create pre-release
|
- name: Create pre-release
|
||||||
uses: "marvinpinto/action-automatic-releases@latest"
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
|
|
17
.github/workflows/pull_request.yml
vendored
17
.github/workflows/pull_request.yml
vendored
|
@ -7,16 +7,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Run Gradle command
|
- name: Set up JDK 8
|
||||||
uses: Raul6469/android-gradle-action@2.0.0
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
script: assembleDebug
|
java-version: '8'
|
||||||
# In some cases, you may need to provide
|
distribution: 'adopt'
|
||||||
# Android licence agreement id
|
- name: Grant execute permission for gradlew
|
||||||
# You can find it on your own machine under `$ANDROID_HOME/license`,
|
run: chmod +x gradlew
|
||||||
# and add the file content as a GitHub secret named `$ANDROID_LICENCE`.
|
- name: Run Gradle
|
||||||
# android-licence: ${{ secrets.ANDROID_LICENCE }}
|
run: ./gradlew assembleDebug
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue