Skip to content

Commit

Permalink
Set the string flavour tag of the jar in the actions artifacts to nig…
Browse files Browse the repository at this point in the history
…htly (#4994)
  • Loading branch information
TheLimeGlass authored Dec 27, 2022
1 parent beeedd1 commit b14a3cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/java-17-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ jobs:
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript
run: ./gradlew nightlyRelease
- name: Run test scripts
- name: Build Skript and run test scripts
run: ./gradlew clean skriptTestJava17
- name: Upload Nightly Build
uses: actions/upload-artifact@v3
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/java-8-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ jobs:
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Skript
run: ./gradlew nightlyRelease
- name: Run test scripts
- name: Build Skript and run test scripts
run: ./gradlew clean skriptTestJava8
- name: Upload Nightly Build
uses: actions/upload-artifact@v3
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Publish Skript
run: ./gradlew publish
env:
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ tasks.register('testNaming') {
// Create a test task with given name, environments dir/file, dev mode and java version.
void createTestTask(String name, String environments, boolean devMode, int javaVersion, boolean genDocs) {
tasks.register(name, JavaExec) {
dependsOn jar, testNaming
dependsOn nightlyRelease, testNaming
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(javaVersion)
}
Expand All @@ -170,7 +170,7 @@ void createTestTask(String name, String environments, boolean devMode, int javaV
}
group = 'execution'
classpath = files([
'build' + File.separator + 'libs' + File.separator + 'Skript.jar',
'build' + File.separator + 'libs' + File.separator + 'Skript-nightly.jar',
project.configurations.runtimeClasspath.find { it.name.startsWith('gson') },
sourceSets.main.runtimeClasspath
])
Expand Down

0 comments on commit b14a3cd

Please sign in to comment.