-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beta' into present-waypoints
- Loading branch information
Showing
58 changed files
with
861 additions
and
125 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Read the Javadoc of RepoPatternDump for more info | ||
|
||
name: RepoPattern | ||
|
||
env: | ||
data_repo: hannibal002/SkyHanni-REPO | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
permissions: { } | ||
|
||
jobs: | ||
regexes: | ||
runs-on: ubuntu-latest | ||
name: "Generate regexes" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
cache: gradle | ||
- name: Setup gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Generate Repo Patterns using Gradle | ||
run: | | ||
./gradlew generateRepoPatterns --stacktrace | ||
- uses: actions/upload-artifact@v3 | ||
name: Upload generated repo regexes | ||
with: | ||
name: Repo Regexes | ||
path: build/regexes/constants.json | ||
publish-regexes: | ||
runs-on: ubuntu-latest | ||
needs: regexes | ||
name: "Publish regexes" | ||
if: ${{ 'push' == github.event_name && 'beta' == github.ref_name }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ env.data_repo }} | ||
branch: main | ||
- uses: actions/download-artifact@v3 | ||
name: Upload generated repo regexes | ||
with: | ||
name: Repo Regexes | ||
- name: Commit generated regex | ||
run: | | ||
mkdir -p constants/ | ||
mv constants.json constants/regexes.json | ||
git config user.name 'github-actions[bot]' | ||
git config user.email '[email protected]' | ||
git add constants/regexes.json | ||
git commit -m "Update regexes based on https://github.com/hannibal002/Skyhanni/commit/$GITHUB_SHA" | ||
- name: Publish new repository | ||
run: | | ||
git config --unset-all http.https://github.com/.extraheader | ||
git remote add restream https://user:${{secrets.REPO_PAT}}@github.com/${{env.data_repo}} | ||
git push restream HEAD:main |
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
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
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,7 +1,11 @@ | ||
[versions] | ||
libautoupdate = "1.0.3" | ||
moulconfig = "2.5.0" | ||
headlessLwjgl = "1.7.2" | ||
jbAnnotations = "24.1.0" | ||
|
||
[libraries] | ||
moulconfig = { module = "org.notenoughupdates.moulconfig:legacy", version.ref = "moulconfig" } | ||
libautoupdate = { module = "moe.nea:libautoupdate", version.ref = "libautoupdate" } | ||
headlessLwjgl = { module = "com.github.3arthqu4ke.HeadlessMc:headlessmc-lwjgl", version.ref = "headlessLwjgl" } | ||
jbAnnotations = { module = "org.jetbrains:annotations", version.ref = "jbAnnotations" } |
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
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
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
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
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
23 changes: 23 additions & 0 deletions
23
src/main/java/at/hannibal2/skyhanni/config/features/dev/RepoPatternConfig.java
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package at.hannibal2.skyhanni.config.features.dev; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; | ||
import io.github.moulberry.moulconfig.annotations.ConfigOption; | ||
import io.github.moulberry.moulconfig.observer.Property; | ||
|
||
public class RepoPatternConfig { | ||
@Expose | ||
@ConfigOption(name = "Force Local Loading", desc = "Force loading local patterns.") | ||
@ConfigEditorBoolean | ||
public Property<Boolean> forceLocal = Property.of(false); | ||
|
||
@Expose | ||
@ConfigOption(name = "Tolerate Duplicate Usages", desc = "Don't crash when two or more code locations use the same RepoPattern key") | ||
@ConfigEditorBoolean | ||
public boolean tolerateDuplicateUsage = false; | ||
|
||
@Expose | ||
@ConfigOption(name = "Tolerate Late Registration", desc = "Don't crash when a RepoPattern is obtained after preinitialization.") | ||
@ConfigEditorBoolean | ||
public boolean tolerateLateRegistration = false; | ||
} |
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
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
Oops, something went wrong.