Skip to content

Commit

Permalink
Disable ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Jan 29, 2025
1 parent 1c49965 commit 6dd37a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 129 deletions.
127 changes: 0 additions & 127 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,133 +201,6 @@ jobs:
path: 'app/desktop/build/compose/binaries/main-release/app'
if-no-files-found: 'error'
overwrite: 'true'
build_github-ubuntu-2404:
name: 'Build (Ubuntu 24.04 x86_64 (GitHub))'
runs-on:
- 'ubuntu-24.04'
permissions:
actions: 'write'
steps:
- id: 'step-0'
uses: 'actions/checkout@v4'
with:
submodules: 'recursive'
- id: 'step-1'
name: 'Free space for Ubuntu'
uses: 'jlumbroso/[email protected]'
with:
android: 'false'
large-packages: 'false'
tool-cache: 'false'
- id: 'step-2'
continue-on-error: true
run: 'rm local.properties'
- id: 'step-3'
name: 'Get JBR (Windows)'
env:
RUNNER_TOOL_CACHE: '${{ runner.tool_cache }}'
JBR_URL: 'https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk_jcef-21.0.5-linux-x64-b750.29.tar.gz'
JBR_CHECKSUM_URL: 'https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk_jcef-21.0.5-linux-x64-b750.29.tar.gz.checksum'
shell: 'bash'
run: 'python .github/workflows/download_jbr.py'
- id: 'step-4'
name: 'Setup JBR 21 for Ubuntu'
uses: 'gmitch215/setup-java@6d2c5e1f82f180ae79f799f0ed6e3e5efb4e664d'
with:
java-version: '21'
distribution: 'jdkfile'
jdkFile: '${{ steps.step-3.outputs.jbrLocation }}'
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- id: 'step-5'
name: 'Dump Local Properties'
run: 'echo "jvm.toolchain.version=21" >> local.properties'
- id: 'step-6'
run: 'chmod -R 777 .'
- id: 'step-7'
name: 'Setup Gradle'
uses: 'gradle/actions/setup-gradle@v3'
with:
cache-disabled: 'true'
- id: 'step-8'
name: 'Clean and download dependencies'
uses: 'nick-fields/retry@v3'
with:
timeout_minutes: '60'
max_attempts: '3'
command: './gradlew "--stacktrace" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dorg.gradle.jvmargs=-Xmx6g" "-Dkotlin.daemon.jvm.options=-Xmx6g" "-Pani.dandanplay.app.id=${{ secrets.DANDANPLAY_APP_ID }}" "-Pani.dandanplay.app.secret=${{ secrets.DANDANPLAY_APP_SECRET }}" "-Pani.android.abis=x86_64"'
- id: 'step-9'
name: 'Update dev version name'
uses: 'nick-fields/retry@v3'
with:
timeout_minutes: '120'
max_attempts: '2'
command: './gradlew updateDevVersionNameFromGit "--no-configuration-cache" "--scan" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dorg.gradle.jvmargs=-Xmx6g" "-Dkotlin.daemon.jvm.options=-Xmx6g" "-Pani.dandanplay.app.id=${{ secrets.DANDANPLAY_APP_ID }}" "-Pani.dandanplay.app.secret=${{ secrets.DANDANPLAY_APP_SECRET }}" "-Pani.android.abis=x86_64"'
- id: 'step-10'
name: 'Compile Kotlin'
uses: 'nick-fields/retry@v3'
with:
timeout_minutes: '120'
max_attempts: '2'
command: './gradlew compileKotlin compileCommonMainKotlinMetadata compileJvmMainKotlinMetadata compileKotlinDesktop compileKotlinMetadata "--scan" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dorg.gradle.jvmargs=-Xmx6g" "-Dkotlin.daemon.jvm.options=-Xmx6g" "-Pani.dandanplay.app.id=${{ secrets.DANDANPLAY_APP_ID }}" "-Pani.dandanplay.app.secret=${{ secrets.DANDANPLAY_APP_SECRET }}" "-Pani.android.abis=x86_64"'
- id: 'step-11'
name: 'Compile Kotlin Android'
uses: 'nick-fields/retry@v3'
with:
timeout_minutes: '120'
max_attempts: '2'
command: './gradlew compileDebugKotlinAndroid compileReleaseKotlinAndroid "--scan" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dorg.gradle.jvmargs=-Xmx6g" "-Dkotlin.daemon.jvm.options=-Xmx6g" "-Pani.dandanplay.app.id=${{ secrets.DANDANPLAY_APP_ID }}" "-Pani.dandanplay.app.secret=${{ secrets.DANDANPLAY_APP_SECRET }}" "-Pani.android.abis=x86_64"'
- id: 'step-12'
name: 'Enable KVM'
run: |-
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- id: 'step-13'
name: 'Build Android Instrumented Tests'
uses: 'nick-fields/retry@v3'
with:
timeout_minutes: '120'
max_attempts: '2'
command: './gradlew assembleDebugAndroidTest "-Pandroid.min.sdk=30" "--scan" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dorg.gradle.jvmargs=-Xmx6g" "-Dkotlin.daemon.jvm.options=-Xmx6g" "-Pani.dandanplay.app.id=${{ secrets.DANDANPLAY_APP_ID }}" "-Pani.dandanplay.app.secret=${{ secrets.DANDANPLAY_APP_SECRET }}" "-Pani.android.abis=x86_64"'
- id: 'step-14'
name: 'Android Instrumented Test (api=30, arch=x86_64)'
uses: 'reactivecircus/android-emulator-runner@v2'
with:
api-level: '30'
arch: 'x86_64'
emulator-boot-timeout: '1800'
script: './gradlew connectedDebugAndroidTest "-Pandroid.min.sdk=30" "--scan" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dorg.gradle.jvmargs=-Xmx6g" "-Dkotlin.daemon.jvm.options=-Xmx6g" "-Pani.dandanplay.app.id=${{ secrets.DANDANPLAY_APP_ID }}" "-Pani.dandanplay.app.secret=${{ secrets.DANDANPLAY_APP_SECRET }}" "-Pani.android.abis=x86_64"'
- id: 'step-15'
name: 'Uninstall emulators'
run: |
sdkmanager --uninstall $(sdkmanager --list | grep emulator | awk '{print $1}')
- id: 'step-16'
name: 'Remove AVD'
run: |-
echo "Removing Emulator binaries..."
rm -rf $ANDROID_HOME/emulator
echo "Removing System Images..."
rm -rf $ANDROID_HOME/system-images
- id: 'step-17'
name: 'Android Instrumented Test (api=35, arch=x86_64)'
uses: 'reactivecircus/android-emulator-runner@v2'
with:
api-level: '35'
arch: 'x86_64'
emulator-boot-timeout: '1800'
script: './gradlew connectedDebugAndroidTest "-Pandroid.min.sdk=30" "--scan" "-Porg.gradle.daemon.idletimeout=60000" "-Pkotlin.native.ignoreDisabledTargets=true" "-Dfile.encoding=UTF-8" "-Dorg.gradle.jvmargs=-Xmx6g" "-Dkotlin.daemon.jvm.options=-Xmx6g" "-Pani.dandanplay.app.id=${{ secrets.DANDANPLAY_APP_ID }}" "-Pani.dandanplay.app.secret=${{ secrets.DANDANPLAY_APP_SECRET }}" "-Pani.android.abis=x86_64"'
- id: 'step-18'
name: 'Uninstall emulators'
run: |
sdkmanager --uninstall $(sdkmanager --list | grep emulator | awk '{print $1}')
- id: 'step-19'
name: 'Remove AVD'
run: |-
echo "Removing Emulator binaries..."
rm -rf $ANDROID_HOME/emulator
echo "Removing System Images..."
rm -rf $ANDROID_HOME/system-images
build_github-macos-13:
name: 'Build (macOS 13 x86_64 (GitHub))'
runs-on:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/src.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ run {
val ghUbuntu2404 = MatrixInstance(
runner = Runner.GithubUbuntu2404,
uploadApk = false,
runAndroidInstrumentedTests = true,
runAndroidInstrumentedTests = true, // 这其实有问题, GH 没有足够的空间安装 7GB 模拟器
composeResourceTriple = "linux-x64",
runTests = false,
uploadDesktopInstallers = false,
Expand Down Expand Up @@ -423,7 +423,7 @@ run {
buildMatrixInstances = listOf(
selfWin10,
ghWin2019,
ghUbuntu2404,
// ghUbuntu2404,
ghMac13,
selfMac15,
)
Expand Down

0 comments on commit 6dd37a2

Please sign in to comment.