From 1d6e6ea67d4c09bc2026c6c4f047491a579b7c36 Mon Sep 17 00:00:00 2001 From: Him188 Date: Wed, 19 Oct 2022 16:30:20 +0100 Subject: [PATCH] [core] Ensure MPP metadata with all available platforms is uploaded before uploading platform artifacts. Fix #2270 --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28035e997..66e655721 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,8 @@ jobs: - macos-12 env: enableLocalPublishingTest: 'false' - gradleArgs: --scan "-Dmirai.target=jvm;android;!other" "-Pkotlin.compiler.execution.strategy=in-process" + # All targets MUST be enabled. See #2270. + gradleArgs: --scan "-Dmirai.target=other" "-Pkotlin.compiler.execution.strategy=in-process" isMac: ${{ startsWith(matrix.os, 'macos') }} isWindows: ${{ startsWith(matrix.os, 'windows') }} isUbuntu: ${{ startsWith(matrix.os, 'ubuntu') }} @@ -110,6 +111,7 @@ jobs: publish-core-native: name: "Native (${{ matrix.os }})" + needs: [ publish-others ] # Allow MPP metadata to be uploaded first. runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -117,7 +119,7 @@ jobs: os: - windows-2022 - ubuntu-20.04 - - macos-12 + # - macos-12 # macOS artifacts published in 'publish-others' include: - os: windows-2022 targetName: mingwX64