diff --git a/.ado/Brewfile b/.ado/Brewfile deleted file mode 100644 index bfe131072dc..00000000000 --- a/.ado/Brewfile +++ /dev/null @@ -1,2 +0,0 @@ -brew "xcbeautify" -brew "ccache" diff --git a/.ado/azure-pipelines.publish.yml b/.ado/azure-pipelines.publish.yml index ce9e5c56a62..fa2252437bf 100644 --- a/.ado/azure-pipelines.publish.yml +++ b/.ado/azure-pipelines.publish.yml @@ -14,17 +14,12 @@ parameters: displayName: Skip Npm Publish type: boolean default: false - - name: skipNugetPublish - displayName: Skip Nuget Publish - type: boolean - default: false variables: - group: 'FluentUI React Native Secrets' - group: InfoSec-SecurityResults - name: tags value: production,externalfacing - - template: variables/vars.yml resources: repositories: @@ -64,11 +59,14 @@ extends: targetPath: $(System.DefaultWorkingDirectory) artifactName: dist steps: - - template: .ado/templates/setup-repo.yml@self + - task: UseNode@1 + inputs: + version: '22.x' + displayName: 'Use Node.js 22.x' - script: | yarn - displayName: 'yarn install' + displayName: 'yarn install --immutable' - script: | yarn buildci @@ -94,11 +92,3 @@ extends: yarn config unset npmPublishRegistry displayName: 'Cleanup yarn npm config' condition: always() - - - template: .ado/templates/win32-nuget-publish.yml@self - parameters: - skipNugetPublish: ${{ parameters.skipNugetPublish }} - - - template: .ado/templates/e2e-dependency-nuget-publish.yml@self - parameters: - skipNugetPublish: ${{ parameters.skipNugetPublish }} diff --git a/.ado/scripts/xcodebuild.sh b/.ado/scripts/xcodebuild.sh deleted file mode 100755 index 243cd0fd8e3..00000000000 --- a/.ado/scripts/xcodebuild.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash -set -eox pipefail - -workspace=$1 -sdk=$2 -scheme=$3 -action=$4 - -shift 4 - - -if [[ $sdk == iphoneos || $sdk == iphonesimulator ]]; then - if [[ $action == 'test' || $action == 'test-without-building' ]]; then - device=$(xcrun simctl list devices iPhone available) - re='iPhone [0-9]+ \(([-0-9A-Fa-f]+)\)' - [[ $device =~ $re ]] || exit 1 - shift || true - destination="-destination \"platform=iOS Simulator,id=${BASH_REMATCH[1]}\"" - else - destination='-destination "generic/platform=iOS Simulator"' - fi -elif [[ $sdk == macosx ]]; then - destination='' -elif [[ $sdk == xros || $sdk == xrsimulator ]]; then - if [[ $action == 'test' || $action == 'test-without-building' ]]; then - device=$(xcrun simctl list devices visionOS available) - re='Apple Vision Pro \(([-0-9A-Fa-f]+)\)' - [[ $device =~ $re ]] || exit 1 - shift || true - destination="-destination \"platform=visionOS Simulator,id=${BASH_REMATCH[1]}\"" - else - destination='-destination "generic/platform=visionOS Simulator"' - fi -else - echo "Cannot detect sdk: $sdk" - exit 1 -fi - -build_cmd=$( - echo xcodebuild \ - -workspace "$workspace" \ - -scheme "$scheme" \ - -sdk "$sdk" \ - "$destination" \ - -derivedDataPath $(dirname $workspace)/build \ - CODE_SIGNING_ALLOWED=NO \ - COMPILER_INDEX_STORE_ENABLE=NO \ - "$action" \ - "$@" \ - -) - -if [[ "$CCACHE_DISABLE" != "1" ]]; then - if ! command -v ccache 1> /dev/null; then - brew install ccache - fi - - CCACHE_HOME=$(dirname $(dirname $(which ccache)))/opt/ccache - - export CCACHE_DIR="$(git rev-parse --show-toplevel)/.ccache" - - export CC="${CCACHE_HOME}/libexec/clang" - export CXX="${CCACHE_HOME}/libexec/clang++" - export CMAKE_C_COMPILER_LAUNCHER=$(which ccache) - export CMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) - - ccache --zero-stats 1> /dev/null -fi -if ! command -v xcbeautify 1> /dev/null; then - brew install xcbeautify -fi - -eval "$build_cmd" | xcbeautify --report junit - -if [[ "$CCACHE_DISABLE" != "1" ]]; then - ccache --show-stats --verbose -fi diff --git a/.ado/templates/android-dep-setup.yml b/.ado/templates/android-dep-setup.yml deleted file mode 100644 index 091cd4b02a7..00000000000 --- a/.ado/templates/android-dep-setup.yml +++ /dev/null @@ -1,31 +0,0 @@ -steps: - - task: JavaToolInstaller@0 - inputs: - versionSpec: '17' - jdkArchitectureOption: 'x64' - jdkSourceOption: 'PreInstalled' - - task: Bash@3 - displayName: 'Android Emulator Setup' - inputs: - targetType: 'inline' - script: | - #!/usr/bin/env bash - set -eox pipefail - - # Install AVD files - echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install 'system-images;android-30;google_apis;x86' - - # Create emulator - echo "no" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n android_emulator -k 'system-images;android-30;google_apis;x86' --force - - $ANDROID_HOME/emulator/emulator -list-avds - - echo "Starting emulator" - - # Start emulator in background - nohup $ANDROID_HOME/emulator/emulator -avd android_emulator -no-snapshot -no-window -no-audio -no-boot-anim -accel off > /dev/null 2>&1 & - $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82' - - $ANDROID_HOME/platform-tools/adb devices - - echo "Emulator started" diff --git a/.ado/templates/apple-tools-setup.yml b/.ado/templates/apple-tools-setup.yml deleted file mode 100644 index a7faef316d7..00000000000 --- a/.ado/templates/apple-tools-setup.yml +++ /dev/null @@ -1,25 +0,0 @@ -steps: - - task: NodeTool@0 - inputs: - versionSpec: '22.x' - - - task: CmdLine@2 - displayName: 'brew bundle' - inputs: - script: | - brew bundle --file .ado/Brewfile - - # Cocoapods 1.15.0 doesn't work with React Native - - task: CmdLine@2 - displayName: Install Cocoapods 1.15.2 if needed - inputs: - script: | - POD_VERSION=$(pod --version) - if [ $POD_VERSION = 1.15.0 ]; then - gem install cocoapods -v 1.15.2 - fi - - - bash: | - sudo xcode-select --switch $(xcode_version) - displayName: Use $(xcode_friendly_name) - failOnStderr: true diff --git a/.ado/templates/apple-xcode-build.yml b/.ado/templates/apple-xcode-build.yml deleted file mode 100644 index 84399349c0e..00000000000 --- a/.ado/templates/apple-xcode-build.yml +++ /dev/null @@ -1,19 +0,0 @@ -parameters: - xcode_sdk: '' - xcode_configuration: '' - xcode_workspacePath: '' - xcode_scheme: '' - xcode_actions: '' - xcode_extraArgs: '' - -steps: - - task: Xcode@5 - displayName: 'Xcode ${{ parameters.xcode_actions }} ${{ parameters.xcode_configuration }} ${{ parameters.xcode_sdk }} ${{ parameters.xcode_scheme }}' - inputs: - actions: '${{ parameters.xcode_actions }}' - sdk: ${{ parameters.xcode_sdk }} - scheme: ${{ parameters.xcode_scheme }} - configuration: ${{ parameters.xcode_configuration }} - xcWorkspacePath: ${{ parameters.xcode_workspacePath }} - signingOption: nosign - args: '-verbose -derivedDataPath DerivedData ${{ parameters.xcode_extraArgs }}' diff --git a/.ado/templates/e2e-publish-artifacts.yml b/.ado/templates/e2e-publish-artifacts.yml deleted file mode 100644 index 32c4969d742..00000000000 --- a/.ado/templates/e2e-publish-artifacts.yml +++ /dev/null @@ -1,30 +0,0 @@ -parameters: - platform: - applicationType: - buildArtifacts: - directory: - -steps: - # Copy Appium/WebDriverIO reports to FluentTesterDump - - task: CopyFiles@2 - inputs: - sourceFolder: ${{parameters.directory}}/reports - targetFolder: $(Build.StagingDirectory)/E2E_${{parameters.applicationType}}_Dump - displayName: 'Copy ${{parameters.applicationType}} Appium/WebDriverIO Reports,' - condition: and (succeededOrFailed(), eq(${{parameters.buildArtifacts}}, 'success')) - - # Copy errorShots to FluentTesterDump - - task: CopyFiles@2 - inputs: - sourceFolder: ${{parameters.directory}}/errorShots - targetFolder: $(Build.StagingDirectory)/E2E_${{parameters.applicationType}}_Dump - displayName: 'Copy ${{parameters.applicationType}} tree dump screenshots' - condition: and (succeededOrFailed(), eq(${{parameters.buildArtifacts}}, 'success')) - - # Publish FluentTesterDump - - task: PublishBuildArtifacts@1 - inputs: - artifactName: E2E_${{parameters.applicationType}}_Dump - pathtoPublish: $(Build.StagingDirectory)/E2E_${{parameters.applicationType}}_Dump - displayName: 'Publish Artifact:E2E_${{parameters.applicationType}}_Dump' - condition: and (succeededOrFailed(), eq(${{parameters.buildArtifacts}}, 'success')) diff --git a/.ado/templates/e2e-testing-android.yml b/.ado/templates/e2e-testing-android.yml deleted file mode 100644 index fc2545815b7..00000000000 --- a/.ado/templates/e2e-testing-android.yml +++ /dev/null @@ -1,58 +0,0 @@ -steps: - # sets-up specifics for android dependency like NDK & emulator - - template: templates/android-dep-setup.yml - - # Building APK also requires bundling, this is currently already being done as part of main Android PR task. - - task: Gradle@3 - displayName: 'gradlew build apk' - inputs: - gradleWrapperFile: 'apps/fluent-tester/android/gradlew' - tasks: 'assembleDebug' - gradleOptions: '-Xmx2g' - javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.17' - workingDirectory: apps/fluent-tester/android - - - task: Gradle@3 - inputs: - workingDirectory: apps/fluent-tester/android - gradleWrapperFile: 'apps/fluent-tester/android/gradlew' - gradleOptions: '-Xmx3072m' - publishJUnitResults: false - tasks: 'assembleDebug' - - - script: | - adb install app-debug.apk - workingDirectory: apps/fluent-tester/android/app/build/outputs/apk/debug - displayName: 'install apk' - - # Creates a variable that determines whether the previous build tasks succeeded. - # Usage: We want the tasks that generate reports to run for both passing/failing E2E testing tasks. In order to do so, we need to make - # those reporting tasks run even on when certain previous tasks fail. This variable allows us to differentiate build failures from - # E2E testing failures. Thus, if this variable != "Success", we know the build failed, and to not run the reporting tasks. - - task: PowerShell@2 - inputs: - targetType: 'inline' - script: | - Write-Host "##vso[task.setvariable variable=task.Build.status]Success" - condition: succeeded() - displayName: 'Create success build variable' - - - script: | - yarn e2eprep:android - workingDirectory: apps/E2E - displayName: 'prepare E2E Android tests' - condition: succeeded() - - - script: | - yarn e2etest:android - workingDirectory: apps/E2E - displayName: 'run E2E Android tests [test]' - condition: succeeded() - - - template: e2e-publish-artifacts.yml - parameters: - applicationType: android - platform: 'android' - buildArtifacts: variables['task.Build.status'] - directory: $(Build.SourcesDirectory)/apps/E2E diff --git a/.ado/templates/e2e-testing-ios.yml b/.ado/templates/e2e-testing-ios.yml deleted file mode 100644 index 03bc301cc39..00000000000 --- a/.ado/templates/e2e-testing-ios.yml +++ /dev/null @@ -1,31 +0,0 @@ -steps: - # Creates a variable that determines whether the previous build tasks succeeded. - # Usage: We want the tasks that generate reports to run for both passing/failing E2E testing tasks. In order to do so, we need to make - # those reporting tasks run even on when certain previous tasks fail. This variable allows us to differentiate build failures from - # E2E testing failures. Thus, if this variable != "Success", we know the build failed, and to not run the reporting tasks. - - task: PowerShell@2 - inputs: - targetType: 'inline' - script: | - Write-Host "##vso[task.setvariable variable=task.Build.status]Success" - condition: succeeded() - displayName: 'Create success build variable' - - - script: | - yarn e2eprep:ios - workingDirectory: apps/E2E - displayName: 'prepare E2E iOS tests' - condition: succeeded() - - - script: | - yarn e2etest:ios - workingDirectory: apps/E2E - displayName: 'run E2E iOS tests [test]' - condition: succeeded() - - - template: e2e-publish-artifacts.yml - parameters: - applicationType: ios - platform: 'ios' - buildArtifacts: variables['task.Build.status'] - directory: $(Build.SourcesDirectory)/apps/E2E diff --git a/.ado/templates/e2e-testing-macos.yml b/.ado/templates/e2e-testing-macos.yml deleted file mode 100644 index b68616b8fae..00000000000 --- a/.ado/templates/e2e-testing-macos.yml +++ /dev/null @@ -1,31 +0,0 @@ -steps: - # Creates a variable that determines whether the previous build tasks succeeded. - # Usage: We want the tasks that generate reports to run for both passing/failing E2E testing tasks. In order to do so, we need to make - # those reporting tasks run even on when certain previous tasks fail. This variable allows us to differentiate build failures from - # E2E testing failures. Thus, if this variable != "Success", we know the build failed, and to not run the reporting tasks. - - task: PowerShell@2 - inputs: - targetType: 'inline' - script: | - Write-Host "##vso[task.setvariable variable=task.Build.status]Success" - condition: succeeded() - displayName: 'Create success build variable' - - - script: | - yarn e2eprep:macos - workingDirectory: apps/E2E - displayName: 'prepare E2E macos tests' - condition: succeeded() - - - script: | - yarn e2etest:macos - workingDirectory: apps/E2E - displayName: 'run E2E macos tests [test]' - condition: succeeded() - - - template: e2e-publish-artifacts.yml - parameters: - applicationType: macos - platform: 'macos' - buildArtifacts: variables['task.Build.status'] - directory: $(Build.SourcesDirectory)/apps/E2E diff --git a/.ado/templates/e2e-testing-uwp.yml b/.ado/templates/e2e-testing-uwp.yml deleted file mode 100644 index 1a962d76b28..00000000000 --- a/.ado/templates/e2e-testing-uwp.yml +++ /dev/null @@ -1,57 +0,0 @@ -steps: - - script: | - yarn bundle:windows - workingDirectory: apps/fluent-tester - displayName: 'yarn bundle' - - # WinAppDriver 1.2 is being deployed across MS hosted agents. appium-windows-driver is tied to a specific version of WinAppDriver, - # failing if a hash is mismatched. The latest current available package supports 1.2rc. - # Uninstall WinAppDriver 1.2.1 if installed and instead install WinAppDriver 1.1 for now - - powershell: | - Invoke-WebRequest https://github.com/microsoft/WinAppDriver/releases/download/v1.1/WindowsApplicationDriver.msi -OutFile $(Agent.TempDirectory)\WinAppDriver.msi - Start-Process msiexec -ArgumentList "/quiet","/x","{087BBF93-D9E3-4D27-BDBE-9C702E0066FC}" -Verb runAs -Wait - Start-Process msiexec -ArgumentList "/quiet","/i","$(Agent.TempDirectory)\WinAppDriver.msi" -Verb runAs -Wait - displayName: Replace WinAppDriver 1.2.99 with WinAppDriver 1.1 - - - script: | - yarn install-windows-test-app - workingDirectory: apps\fluent-tester - displayName: 'generate UWP app' - - - script: | - yarn windows --arch x64 --logging --no-packager --no-launch - workingDirectory: apps\fluent-tester - displayName: 'build UWP app' - - # Creates a variable that determines whether the previous build tasks succeeded. - # Usage: We want the tasks that generate reports to run for both passing/failing E2E testing tasks. In order to do so, we need to make - # those reporting tasks run even on when certain previous tasks fail. This variable allows us to differentiate build failures from - # E2E testing failures. Thus, if this variable != "Success", we know the build failed, and to not run the reporting tasks. - - task: PowerShell@2 - inputs: - targetType: 'inline' - script: | - Write-Host "##vso[task.setvariable variable=task.Build.status]Success" - condition: succeeded() - displayName: 'Create success build variable' - - - script: | - yarn e2eprep:windows - workingDirectory: apps/E2E - displayName: 'prepare E2E Windows tests' - condition: succeeded() - - - script: | - yarn e2etest:windows - workingDirectory: apps\E2E - displayName: 'run E2E UWP tests [test]' - condition: succeeded() - - # The following condition (using task.Build.status variable) make it so the reports generate even if the E2E tasks fails, - # but not if the initial repo build steps fail. - - template: e2e-publish-artifacts.yml - parameters: - applicationType: UWP - platform: windows - buildArtifacts: variables['task.Build.status'] - directory: $(Build.SourcesDirectory)/apps/E2E diff --git a/.ado/templates/e2e-testing-win32.yml b/.ado/templates/e2e-testing-win32.yml deleted file mode 100644 index f44854ae83f..00000000000 --- a/.ado/templates/e2e-testing-win32.yml +++ /dev/null @@ -1,45 +0,0 @@ -steps: - - script: | - yarn bundle - workingDirectory: apps/win32 - displayName: 'yarn bundle' - - # WinAppDriver 1.2 is being deployed across MS hosted agents. appium-windows-driver is tied to a specific version of WinAppDriver, - # failing if a hash is mismatched. The latest current available package supports 1.2rc. - # Uninstall WinAppDriver 1.2.1 if installed and instead install WinAppDriver 1.1 for now - - powershell: | - Invoke-WebRequest https://github.com/microsoft/WinAppDriver/releases/download/v1.1/WindowsApplicationDriver.msi -OutFile $(Agent.TempDirectory)\WinAppDriver.msi - Start-Process msiexec -ArgumentList "/quiet","/x","{087BBF93-D9E3-4D27-BDBE-9C702E0066FC}" -Verb runAs -Wait - Start-Process msiexec -ArgumentList "/quiet","/i","$(Agent.TempDirectory)\WinAppDriver.msi" -Verb runAs -Wait - displayName: Replace WinAppDriver 1.2.99 with WinAppDriver 1.1 - - # Creates a variable that determines whether the previous build tasks succeeded. - # Usage: We want the tasks that generate reports to run for both passing/failing E2E testing tasks. In order to do so, we need to make - # those reporting tasks run even on when certain previous tasks fail. This variable allows us to differentiate build failures from - # E2E testing failures. Thus, if this variable != "Success", we know the build failed, and to not run the reporting tasks. - - task: PowerShell@2 - inputs: - targetType: 'inline' - script: | - Write-Host "##vso[task.setvariable variable=task.Build.status]Success" - condition: succeeded() - displayName: 'Create success build variable' - - - script: | - yarn e2eprep:win32 - workingDirectory: apps/E2E - displayName: 'prepare E2E Win32 tests' - condition: succeeded() - - - script: | - yarn e2etest:win32 - workingDirectory: apps/E2E - displayName: 'run E2E Win32 tests [test]' - condition: succeeded() - - - template: e2e-publish-artifacts.yml - parameters: - applicationType: win32 - platform: 'win32' - buildArtifacts: variables['task.Build.status'] - directory: $(Build.SourcesDirectory)/apps/E2E diff --git a/.ado/templates/setup-repo-min-build.yml b/.ado/templates/setup-repo-min-build.yml deleted file mode 100644 index f6e91ffe9c6..00000000000 --- a/.ado/templates/setup-repo-min-build.yml +++ /dev/null @@ -1,6 +0,0 @@ -steps: - - template: setup-repo.yml - - - script: | - yarn build - displayName: 'yarn build' diff --git a/.ado/templates/setup-repo.yml b/.ado/templates/setup-repo.yml deleted file mode 100644 index 171dd961eca..00000000000 --- a/.ado/templates/setup-repo.yml +++ /dev/null @@ -1,15 +0,0 @@ -# This template install dependencies, builds, and bundles this repo -steps: - - task: NuGetToolInstaller@0 - inputs: - versionSpec: '5.6.0' - displayName: 'Install Nuget' - - - task: UseNode@1 - inputs: - version: '22.x' - displayName: 'Use Node.js 22.x' - - - script: | - yarn - displayName: 'yarn install' diff --git a/.ado/variables/vars.yml b/.ado/variables/vars.yml deleted file mode 100644 index 91fb5d29008..00000000000 --- a/.ado/variables/vars.yml +++ /dev/null @@ -1,7 +0,0 @@ -variables: - - name: VmImageApple - value: macos-latest-internal - - name: xcode_friendly_name - value: 'Xcode 16.4' - - name: xcode_version - value: '/Applications/Xcode_16.4.app' diff --git a/.ado/markdown-link-check-config.json b/.github/markdown-link-check-config.json similarity index 100% rename from .ado/markdown-link-check-config.json rename to .github/markdown-link-check-config.json diff --git a/.github/scripts/xcodebuild.mts b/.github/scripts/xcodebuild.mts new file mode 100755 index 00000000000..302867d314e --- /dev/null +++ b/.github/scripts/xcodebuild.mts @@ -0,0 +1,97 @@ +#!/usr/bin/env node +import { $ } from 'zx'; +import path from 'node:path'; +import { parseArgs } from 'node:util'; + +$.verbose = true; + +const { positionals } = parseArgs({ allowPositionals: true }); +const [workspace, sdk, scheme, action, ...extra] = positionals; + +if (!workspace || !sdk || !scheme || !action) { + console.error('Usage: xcodebuild.mts [...args]'); + process.exit(1); +} + +async function getDestination(): Promise { + const isTest = action === 'test' || action === 'test-without-building'; + + if (sdk === 'iphoneos' || sdk === 'iphonesimulator') { + if (isTest) { + const devices = (await $`xcrun simctl list devices iPhone available`).stdout; + const match = devices.match(/iPhone \d+ \(([-0-9A-Fa-f]+)\)/); + if (!match) throw new Error('No available iPhone simulator found'); + return ['-destination', `platform=iOS Simulator,id=${match[1]}`]; + } + return ['-destination', 'generic/platform=iOS Simulator']; + } + + if (sdk === 'macosx') { + return []; + } + + if (sdk === 'xros' || sdk === 'xrsimulator') { + if (isTest) { + const devices = (await $`xcrun simctl list devices visionOS available`).stdout; + const match = devices.match(/Apple Vision Pro \(([-0-9A-Fa-f]+)\)/); + if (!match) throw new Error('No available visionOS simulator found'); + return ['-destination', `platform=visionOS Simulator,id=${match[1]}`]; + } + return ['-destination', 'generic/platform=visionOS Simulator']; + } + + throw new Error(`Cannot detect sdk: ${sdk}`); +} + +async function setupCcache(): Promise { + if (!(await $`command -v ccache`.nothrow()).stdout) { + await $`brew install ccache`; + } + + const ccachePath = (await $`which ccache`).stdout.trim(); + const ccacheHome = path.join(path.dirname(path.dirname(ccachePath)), 'opt', 'ccache'); + const repoRoot = (await $`git rev-parse --show-toplevel`).stdout.trim(); + + process.env.CCACHE_DIR = path.join(repoRoot, '.ccache'); + process.env.CC = path.join(ccacheHome, 'libexec', 'clang'); + process.env.CXX = path.join(ccacheHome, 'libexec', 'clang++'); + process.env.CMAKE_C_COMPILER_LAUNCHER = ccachePath; + process.env.CMAKE_CXX_COMPILER_LAUNCHER = ccachePath; + + await $`ccache --zero-stats`.quiet(); +} + +const destination = await getDestination(); +const derivedDataPath = path.join(path.dirname(workspace), 'build'); +const useCcache = process.env.CCACHE_DISABLE !== '1'; + +if (useCcache) { + await setupCcache(); +} + +if (!(await $`command -v xcbeautify`.nothrow()).stdout) { + await $`brew install xcbeautify`; +} + +const xcodebuildArgs = [ + '-workspace', + workspace, + '-scheme', + scheme, + '-sdk', + sdk, + ...destination, + '-derivedDataPath', + derivedDataPath, + 'CODE_SIGNING_ALLOWED=NO', + 'COMPILER_INDEX_STORE_ENABLE=NO', + action, + ...extra, +]; + +// Pipe xcodebuild through xcbeautify +await $`xcodebuild ${xcodebuildArgs} | xcbeautify --report junit`; + +if (useCcache) { + await $`ccache --show-stats --verbose`; +} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 494f8c7f7cf..cedd7de2b2d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -100,9 +100,7 @@ jobs: working-directory: apps/fluent-tester/macos - name: Build macOS app - run: | - set -eox pipefail - ./.ado/scripts/xcodebuild.sh apps/fluent-tester/macos/FluentTester.xcworkspace macosx ReactTestApp build + run: ./.github/scripts/xcodebuild.mts apps/fluent-tester/macos/FluentTester.xcworkspace macosx ReactTestApp build env: CCACHE_DISABLE: 1 @@ -157,9 +155,7 @@ jobs: working-directory: apps/fluent-tester/ios - name: Build iOS app - run: | - set -eox pipefail - ./.ado/scripts/xcodebuild.sh apps/fluent-tester/ios/FluentTester.xcworkspace iphonesimulator ReactTestApp build + run: ./.github/scripts/xcodebuild.mts apps/fluent-tester/ios/FluentTester.xcworkspace iphonesimulator ReactTestApp build env: CCACHE_DISABLE: 1 @@ -345,7 +341,7 @@ jobs: - name: Test markdown links run: | - find . -name \*.md -not -name CHANGELOG.md -not -path '*/node_modules/*' -print0 | xargs -0 -n1 yarn test-links -c $(pwd)/.ado/markdown-link-check-config.json + find . -name \*.md -not -name CHANGELOG.md -not -path '*/node_modules/*' -print0 | xargs -0 -n1 yarn test-links -c $(pwd)/.github/markdown-link-check-config.json pr: name: PR