-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update GitHub Actions --------- Co-authored-by: Nico Mexis <[email protected]>
- Loading branch information
1 parent
482af4a
commit d66af7d
Showing
1 changed file
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: Java CI with Gradle | ||
|
||
on: | ||
push: | ||
branches: [ 2.x ] | ||
tags: | ||
- v* | ||
pull_request: | ||
branches: [ 2.x ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
cache: gradle | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
distribution: 'temurin' | ||
cache: 'gradle' | ||
- name: Build dex-tools with Gradle | ||
run: ./gradlew check distZip | ||
|
||
- name: Archive dex tools | ||
uses: actions/upload-artifact@v3 | ||
if: success() | ||
with: | ||
name: dex-tools-2.2-SNAPSHOT | ||
path: dex-tools/build/distributions/dex-tools-2.2-SNAPSHOT.zip |