Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Feb 25, 2024
1 parent 23747b9 commit 85ca394
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle
name: Build

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
build:
Expand All @@ -35,8 +32,10 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
env:
ARCLIGHT_FILES_TOKEN: ${{ secrets.ARCLIGHT_FILES_TOKEN }}
run: |
./gradlew cleanBuild build collect --no-daemon --stacktrace
./gradlew cleanBuild build collect uploadFiles --no-daemon --stacktrace
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Pull Request Check

on:
pull_request:
branches:
- '**'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
- name: Cache Gradle User Files
uses: actions/cache@v1
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-user-home
- name: Cache Gradle Files
uses: actions/cache@v1
with:
path: ./.gradle
key: ${{ runner.os }}-gradle-file
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: |
./gradlew cleanBuild build collect --no-daemon --stacktrace
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Arclight
path: ./build/libs/*.jar

0 comments on commit 85ca394

Please sign in to comment.