Skip to content

Commit

Permalink
update github actions (#597)
Browse files Browse the repository at this point in the history
* Update GitHub Actions


---------

Co-authored-by: Nico Mexis <[email protected]>
  • Loading branch information
pxb1988 and ThexXTURBOXx authored Aug 31, 2023
1 parent 482af4a commit d66af7d
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/gradle.yml
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

0 comments on commit d66af7d

Please sign in to comment.