Skip to content

Commit

Permalink
Merge pull request #6 from xiaonian233/main
Browse files Browse the repository at this point in the history
  • Loading branch information
erxson authored Apr 27, 2024
2 parents b913575 + f9efd93 commit 8197326
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
name: Gradle Automation Build
runs-on: ubuntu-latest
strategy:
matrix:
java: [17]
steps:
-
uses: actions/checkout@v2
-
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

# add cache to improve workflow execution time
-
name: Cache .gradle/caches
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle-
-
name: Cache .gradle/wrapper
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-wrapper-
-
name: Grant execute permission for gradlew
run: chmod +x gradlew
-
name: Build with Gradle
run: ./gradlew clean build -s
-
name: Upload Jar
uses: actions/upload-artifact@v2
with:
name: Bruhfuscator
path: build/libs/*.jar
4 changes: 2 additions & 2 deletions src/main/java/me/iris/ambien/obfuscator/Ambien.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public class Ambien {
public void initializeTransformers(boolean ignoreVersionCheck) {
// Check for new version
LOGGER.info("Ambien | {}", VERSION);
if (!ignoreVersionCheck)
checkVersion();
// if (!ignoreVersionCheck)
// checkVersion();

// Initialize transformers
LOGGER.info("Initializing transformer manager...");
Expand Down

0 comments on commit 8197326

Please sign in to comment.