mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-15 01:02:06 +01:00
Use proper cl gradle.properties
This commit is contained in:
7
.github/runner-files/ci-gradle.properties
vendored
Normal file
7
.github/runner-files/ci-gradle.properties
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
org.gradle.daemon=false
|
||||||
|
org.gradle.jvmargs=-Xmx5120m
|
||||||
|
org.gradle.workers.max=5
|
||||||
|
org.gradle.parallel=true
|
||||||
|
|
||||||
|
kotlin.incremental=false
|
||||||
|
kotlin.compiler.execution.strategy=in-process
|
||||||
11
.github/workflows/Build.yml
vendored
11
.github/workflows/Build.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
name: Build application packages
|
name: Build application packages
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
runtime: [ linux-x64, osx-x64, win-x64 ]
|
runtime: [ linux-x64, linux-centos-x64, osx-x64, win-x64 ]
|
||||||
include:
|
include:
|
||||||
- runtime: linux-x64
|
- runtime: linux-x64
|
||||||
arch: x64
|
arch: x64
|
||||||
@@ -20,13 +20,15 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
buildPackage: ./scripts/BuildLinuxDeb.sh
|
buildPackage: ./scripts/BuildLinuxDeb.sh
|
||||||
buildJar: ./scripts/BuildUnixJar.sh
|
buildJar: ./scripts/BuildUnixJar.sh
|
||||||
|
setupCl: ./scripts/SetupClUnix.sh
|
||||||
|
|
||||||
- runtime: linux-centos-x64
|
- runtime: linux-centos-x64
|
||||||
arch: x64
|
arch: x64
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
shell: bash
|
shell: bash
|
||||||
buildPackage: ./scripts/BuildLinuxRpm.sh
|
buildPackage: ./scripts/BuildLinuxRpm.sh
|
||||||
buildJar: ./scripts/BuildUnixJar.sh
|
buildJar: ./scripts/BuildUnixJar.sh
|
||||||
|
setupCl: ./scripts/SetupClUnix.sh
|
||||||
|
|
||||||
- runtime: osx-x64
|
- runtime: osx-x64
|
||||||
arch: x64
|
arch: x64
|
||||||
@@ -34,6 +36,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
buildPackage: ./scripts/BuildMacDmg.sh
|
buildPackage: ./scripts/BuildMacDmg.sh
|
||||||
buildJar: ./scripts/BuildUnixJar.sh
|
buildJar: ./scripts/BuildUnixJar.sh
|
||||||
|
setupCl: ./scripts/SetupClUnix.sh
|
||||||
|
|
||||||
- runtime: win-x64
|
- runtime: win-x64
|
||||||
arch: x64
|
arch: x64
|
||||||
@@ -41,6 +44,7 @@ jobs:
|
|||||||
shell: powershell
|
shell: powershell
|
||||||
buildPackage: ./scripts/BuildWindowsMsi.ps1
|
buildPackage: ./scripts/BuildWindowsMsi.ps1
|
||||||
buildJar: ./scripts/BuildWindowsJar.ps1
|
buildJar: ./scripts/BuildWindowsJar.ps1
|
||||||
|
setupCl: ./scripts/SetupClWindows.ps1
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
defaults:
|
defaults:
|
||||||
@@ -55,6 +59,9 @@ jobs:
|
|||||||
java-version: '15'
|
java-version: '15'
|
||||||
architecture: ${{ matrix.arch }}
|
architecture: ${{ matrix.arch }}
|
||||||
|
|
||||||
|
- name: Setup Cl
|
||||||
|
run: ${{ matrix.setupCl }}
|
||||||
|
|
||||||
- name: Build Package
|
- name: Build Package
|
||||||
if: ${{ matrix.runtime != 'linux-centos-x64' && matrix.runtime != 'osx-x64' }}
|
if: ${{ matrix.runtime != 'linux-centos-x64' && matrix.runtime != 'osx-x64' }}
|
||||||
run: ${{ matrix.buildPackage }}
|
run: ${{ matrix.buildPackage }}
|
||||||
|
|||||||
7
scripts/SetupClUnix.sh
Normal file
7
scripts/SetupClUnix.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
if [ "$(basename "$(pwd)")" = "scripts" ]; then
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Writing ci gradle.properties"
|
||||||
|
[ ! -d "/path/to/dir" ] && mkdir ".gradle"
|
||||||
|
cp ".github/runner-files/ci-gradle.properties" ".gradle/gradle.properties"
|
||||||
9
scripts/SetupClWindows.ps1
Normal file
9
scripts/SetupClWindows.ps1
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
if ($(Split-Path -Path (Get-Location) -Leaf) -eq "scripts" ) {
|
||||||
|
Set-Location ..
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Output "Writing ci gradle.properties"
|
||||||
|
if (!(Test-Path -Path ".gradle")) {
|
||||||
|
New-Item -ItemType Directory -Force -Path ".gradle" -ErrorAction SilentlyContinue
|
||||||
|
}
|
||||||
|
Copy-Item ".github/runner-files/ci-gradle.properties" ".gradle/gradle.properties" -Force
|
||||||
@@ -21,6 +21,10 @@ pushd "$TACHIDESK_FOLDER" || exit
|
|||||||
echo "Setting up android.jar"
|
echo "Setting up android.jar"
|
||||||
AndroidCompat/getAndroid.sh
|
AndroidCompat/getAndroid.sh
|
||||||
|
|
||||||
|
echo "Writing ci gradle.properties"
|
||||||
|
[ ! -d "/path/to/dir" ] && mkdir ".gradle"
|
||||||
|
cp ".github/runner-files/ci-gradle.properties" ".gradle/gradle.properties"
|
||||||
|
|
||||||
echo "Building Tachidesk.jar"
|
echo "Building Tachidesk.jar"
|
||||||
./gradlew :server:shadowJar -x :webUI:copyBuild
|
./gradlew :server:shadowJar -x :webUI:copyBuild
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ Push-Location $tachidesk_folder.FullName
|
|||||||
Write-Output "Setting up android.jar"
|
Write-Output "Setting up android.jar"
|
||||||
&"./AndroidCompat/getAndroid.ps1"
|
&"./AndroidCompat/getAndroid.ps1"
|
||||||
|
|
||||||
|
Write-Output "Writing ci gradle.properties"
|
||||||
|
if (!(Test-Path -Path ".gradle")) {
|
||||||
|
New-Item -ItemType Directory -Force -Path ".gradle" -ErrorAction SilentlyContinue
|
||||||
|
}
|
||||||
|
Copy-Item ".github/runner-files/ci-gradle.properties" ".gradle/gradle.properties" -Force
|
||||||
|
|
||||||
Write-Output "Building Tachidesk.jar"
|
Write-Output "Building Tachidesk.jar"
|
||||||
&"./gradlew" :server:shadowJar -x :webUI:copyBuild
|
&"./gradlew" :server:shadowJar -x :webUI:copyBuild
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user