mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-01 03:50:18 +08:00
[build] Disable parallel compilation on Windows and Ubuntu
This commit is contained in:
parent
4c8a18edb7
commit
f7e138086b
13
.github/workflows/check-publishing.yml
vendored
13
.github/workflows/check-publishing.yml
vendored
@ -78,7 +78,7 @@ jobs:
|
||||
|
||||
- name: Build and Publish Local Artifacts
|
||||
if: ${{ env.enableLocalPublishingTest == 'true' }}
|
||||
run: ./gradlew :mirai-deps-test:publishMiraiLocalArtifacts ${{ env.gradleArgs }} "-Dmirai.build.project.version=2.99.0-deps-test"
|
||||
run: ./gradlew :mirai-deps-test:publishMiraiLocalArtifacts ${{ env.gradleArgs }} "-Dmirai.build.project.version=2.99.0-deps-test" "-Porg.gradle.parallel=${{ matrix.parallelCompilation }}"
|
||||
|
||||
- name: Check Publication
|
||||
if: ${{ env.enableLocalPublishingTest == 'true' }}
|
||||
@ -97,14 +97,13 @@ jobs:
|
||||
include:
|
||||
- os: windows-2022
|
||||
targetName: mingwX64
|
||||
parallelCompilation: false
|
||||
- os: ubuntu-20.04
|
||||
targetName: linuxX64
|
||||
- os: ubuntu-18.04
|
||||
targetName: linuxX64
|
||||
# - os: macos-12
|
||||
# targetName: macosX64
|
||||
- os: macos-11
|
||||
parallelCompilation: false
|
||||
- os: macos-12
|
||||
targetName: macosX64
|
||||
parallelCompilation: true # macOS machine has 14G
|
||||
env:
|
||||
# FIXME there must be two or more targets, or we'll get error on `@OptionalExpectation`
|
||||
# > Declaration annotated with '@OptionalExpectation' can only be used in common module sources
|
||||
@ -204,7 +203,7 @@ jobs:
|
||||
|
||||
- name: Build and Publish Local Artifacts
|
||||
if: ${{ env.enableLocalPublishingTest == 'true' }}
|
||||
run: ./gradlew :mirai-deps-test:publishMiraiLocalArtifacts ${{ env.gradleArgs }} "-Dmirai.build.project.version=2.99.0-deps-test"
|
||||
run: ./gradlew :mirai-deps-test:publishMiraiLocalArtifacts ${{ env.gradleArgs }} "-Dmirai.build.project.version=2.99.0-deps-test" "-Porg.gradle.parallel=${{ matrix.parallelCompilation }}"
|
||||
|
||||
- name: Check Publication
|
||||
if: ${{ env.enableLocalPublishingTest == 'true' }}
|
||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -123,10 +123,13 @@ jobs:
|
||||
include:
|
||||
- os: windows-2022
|
||||
targetName: mingwX64
|
||||
parallelCompilation: false
|
||||
- os: ubuntu-20.04
|
||||
targetName: linuxX64
|
||||
parallelCompilation: false
|
||||
- os: macos-12
|
||||
targetName: macosX64
|
||||
parallelCompilation: true # macOS machine has 14G
|
||||
env:
|
||||
# FIXME there must be two or more targets, or we'll get error on `@OptionalExpectation`
|
||||
# > Declaration annotated with '@OptionalExpectation' can only be used in common module sources
|
||||
@ -230,8 +233,9 @@ jobs:
|
||||
- name: Check keys
|
||||
run: ./gradlew ensureMavenCentralAvailable ${{ env.gradleArgs }}
|
||||
|
||||
# Parallel compilation will exhaust machine memory causing OOM
|
||||
- name: Assemble
|
||||
run: ./gradlew assemble ${{ env.gradleArgs }}
|
||||
run: ./gradlew assemble ${{ env.gradleArgs }} "-Porg.gradle.parallel=${{ matrix.parallelCompilation }}"
|
||||
|
||||
- name: Publish Local Artifacts
|
||||
if: ${{ env.enableLocalPublishingTest == 'true' }}
|
||||
|
Loading…
Reference in New Issue
Block a user