Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Dec 26, 2024
1 parent 579f4a0 commit 140427c
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ jobs:
CI_TAG: '${{ steps.step-1.outputs.tag }}'
run: './gradlew updateReleaseVersionNameFromGit "--scan" "--no-configuration-cache" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dani.enable.anitorrent=true" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DBoost_INCLUDE_DIR=C:/vcpkg/installed/x64-windows/include" "-Dorg.gradle.jvmargs=-Xmx4g" "-Dkotlin.daemon.jvm.options=-Xmx4g" "--parallel" "-Pani.android.abis=x86_64"'
- id: 'step-10'
name: 'Build anitorrent'
run: './gradlew buildAnitorrent copyNativeJarForCurrentPlatform "--scan" "--no-configuration-cache" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dani.enable.anitorrent=true" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DBoost_INCLUDE_DIR=C:/vcpkg/installed/x64-windows/include" "-Dorg.gradle.jvmargs=-Xmx4g" "-Dkotlin.daemon.jvm.options=-Xmx4g" "--parallel" "-Pani.android.abis=x86_64"'
- id: 'step-11'
name: 'Upload Anitorrent'
uses: 'actions/upload-artifact@v4'
with:
Expand Down Expand Up @@ -221,14 +224,17 @@ jobs:
CI_TAG: '${{ steps.step-1.outputs.tag }}'
run: './gradlew updateReleaseVersionNameFromGit "--scan" "--no-configuration-cache" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dani.enable.anitorrent=true" "-DCMAKE_BUILD_TYPE=Release" "-Dorg.gradle.jvmargs=-Xmx6g" "-Dkotlin.daemon.jvm.options=-Xmx4g" "--parallel" "-Pani.android.abis=arm64-v8a"'
- id: 'step-11'
name: 'Build anitorrent'
run: './gradlew buildAnitorrent copyNativeJarForCurrentPlatform "--scan" "--no-configuration-cache" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dani.enable.anitorrent=true" "-DCMAKE_BUILD_TYPE=Release" "-Dorg.gradle.jvmargs=-Xmx6g" "-Dkotlin.daemon.jvm.options=-Xmx4g" "--parallel" "-Pani.android.abis=arm64-v8a"'
- id: 'step-12'
name: 'Upload Anitorrent'
uses: 'actions/upload-artifact@v4'
with:
name: 'anitorrent-macos-aarch64'
path: 'anitorrent-native/build/native-jars/anitorrent-native-*.jar'
if-no-files-found: 'error'
overwrite: 'true'
- id: 'step-12'
- id: 'step-13'
name: 'Cleanup temp files'
continue-on-error: true
run: 'chmod +x ./ci-helper/cleanup-temp-files-macos.sh && ./ci-helper/cleanup-temp-files-macos.sh'
Expand Down Expand Up @@ -294,26 +300,29 @@ jobs:
CI_TAG: '${{ steps.step-1.outputs.tag }}'
run: './gradlew updateReleaseVersionNameFromGit "--scan" "--no-configuration-cache" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dani.enable.anitorrent=true" "-DCMAKE_BUILD_TYPE=Release" "-Dorg.gradle.jvmargs=-Xmx4g" "-Dkotlin.daemon.jvm.options=-Xmx4g"'
- id: 'step-11'
name: 'Build anitorrent'
run: './gradlew buildAnitorrent copyNativeJarForCurrentPlatform "--scan" "--no-configuration-cache" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dani.enable.anitorrent=true" "-DCMAKE_BUILD_TYPE=Release" "-Dorg.gradle.jvmargs=-Xmx4g" "-Dkotlin.daemon.jvm.options=-Xmx4g"'
- id: 'step-12'
name: 'Upload Anitorrent'
uses: 'actions/upload-artifact@v4'
with:
name: 'anitorrent-macos-x64'
path: 'anitorrent-native/build/native-jars/anitorrent-native-*.jar'
if-no-files-found: 'error'
overwrite: 'true'
- id: 'step-12'
- id: 'step-13'
uses: 'actions/download-artifact@v4'
with:
name: 'anitorrent-windows-x64'
path: 'anitorrent-native/build/native-jars'
- id: 'step-13'
- id: 'step-14'
uses: 'actions/download-artifact@v4'
with:
name: 'anitorrent-macos-aarch64'
path: 'anitorrent-native/build/native-jars'
- id: 'step-14'
run: 'ls -l anitorrent-native/build/native-jars'
- id: 'step-15'
run: 'ls -l anitorrent-native/build/native-jars'
- id: 'step-16'
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: '${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}'
ORG_GRADLE_PROJECT_mavenCentralPassword: '${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}'
Expand Down

0 comments on commit 140427c

Please sign in to comment.