Граф коммитов

3259 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 73101f2689
[msbuild] Fix dirty working copy with Errors.designer.cs. (#16404)
The Xamarin.MacDev.Tasks.sln solution is built with dotnet, while other projects
are still built with msbuild. This becomes a problem when generating Errors.designer.cs,
because depending on the runtime the output is different.

This means that the Errors.designer.cs will sometimes randomly change (depending
on which project re-generated the file), leaving the file modified in git. This is
quite annoying, but it also breaks the api comparison, which depends on the build
not leaving modified files behind. So for now, we generate Errors.designer.cs separately
for Xamarin.MacDev.Tasks.sln to not conflict with the mtouch version.

Also fix capitalization in numerous places to be consistent (it's Errors.designer.cs,
not Errors.Designer.cs).
2022-10-24 18:56:06 +02:00
Rolf Bjarne Kvinge 9954ad217a
[devops] Fix crash report collection when there's nothing to collect. (#16405)
Fix crash report collection to not try to zip up the
~/Library/Logs/DiagnosticReports directory if there's nothing in it, because
it creates a warning in Azure DevOps:

    + zip -9rj /Users/builder/azdo/_work/2/s/crash-reports.zip /Users/builder/Library/Logs/DiagnosticReports
    zip error: Nothing to do! (try: zip -9rj /Users/builder/azdo/_work/2/s/crash-reports.zip . -i /Users/builder/Library/Logs/DiagnosticReports)
    ##[error]Bash exited with code '12'.

Also remove some debug spew, and make it possible to create a crash report
collection locally by writing the zip file to the current directory if
SYSTEM_DEFAULTWORKINGDIRECTORY isn't set.
2022-10-24 11:41:48 +02:00
Rolf Bjarne Kvinge 88e893d129
[devops] Remove dead code. (#16406) 2022-10-24 11:34:34 +02:00
Rolf Bjarne Kvinge 2c75e2c105
[devops] Simplify code a bit to install qa provisioning profiles. (#16407) 2022-10-24 11:28:31 +02:00
Rolf Bjarne Kvinge 95429d3aa2
[devops] Increase bash compatibility and clean variables a bit. (#16395)
Remove support/logic for the following labels:

* run-internal-tests
* skip-external-tests
* trigger-device-tests

because they didn't actually do anything.

Also use underscores instead of dashes in output variables, because these
variables are also exported as environment variables, and environment variable
names can't contain dashes (bash can't access them).
2022-10-21 10:06:50 +02:00
Rolf Bjarne Kvinge 24f1fc18ed Merge remote-tracking branch 'origin/xcode14.1' into net7.0-xcode14.1 2022-10-20 19:30:22 +02:00
VS MobileTools Engineering Service 2 a24847cca2
[net7.0] [api-diff] Add api-diff.md to the all-markdowns target. (#16392)
Backport of #16380

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-20 08:18:26 +02:00
Rolf Bjarne Kvinge 778baa731f
[devops] Fix a couple of typos. (#16381) 2022-10-19 14:41:29 +02:00
Rolf Bjarne Kvinge 40f4d778de
[devops] Add 'net8.0' and 'release-test/*' as release branches. (#16383)
This is a follow-up to dbcf1cadf8.
2022-10-19 14:40:15 +02:00
Rolf Bjarne Kvinge e7a8314f3a
[api-diff] Add api-diff.md to the all-markdowns target. (#16380) 2022-10-19 14:39:51 +02:00
Rolf Bjarne Kvinge 03783c304a
[devops] Don't fail if the build didn't produce any *.msi files. (#16376)
We won't produce any *.msi files when building for macOS only for instance.
2022-10-19 07:26:45 +02:00
Rolf Bjarne Kvinge 6414c14486 Merge main into xcode14.1. 2022-10-18 09:45:22 +02:00
Rolf Bjarne Kvinge a79e2f87d3 Merge main into net7.0. 2022-10-18 08:12:46 +02:00
Rolf Bjarne Kvinge 46eb7ec267
[apidiff] Don't try to update legacy refs unless legacy is enabled. (#16363) 2022-10-18 08:11:24 +02:00
Rolf Bjarne Kvinge 9ab18236b8
[xharness] Fix path to mlaunch when using mlaunch from a .NET SDK pack. (#16361) 2022-10-18 08:04:13 +02:00
Rolf Bjarne Kvinge c460cc93ce
[compare-commits] Remove argument to specify the GitHub comments file (#16310)
Remove the argument to specify the GitHub comments file, because it's overwritten with a computed value (i.e. completely ignored), and thus confusing what's supposed to happen in the calling script.

Also compute the default earlier, so that it's set to the expected value by the time we have error reporting that will try to write to the comments file.
2022-10-17 17:56:35 +02:00
Rolf Bjarne Kvinge 8f57b7f9be
[devops] Add the job attempt to the api diff container name. (#16353)
This way the api diff job can be re-run and not fail because the artifact
already exists:

> ##[error]Artifact 'DropMetadata-ChangeDetection' already exists. If the build is producing multiple Drops, the Drop Metadata Container Name should be unique for each Drop.
2022-10-17 17:55:34 +02:00
Rolf Bjarne Kvinge 746cefd228
[autoformat] Add the AppKit framework. (#16359) 2022-10-17 17:54:19 +02:00
Rolf Bjarne Kvinge 74816f347f
[autoformat] Add the AudioToolbox and AudioUnit frameworks. (#16360) 2022-10-17 17:53:50 +02:00
Rolf Bjarne Kvinge cb6f555665 Merge main into xcode14.1. 2022-10-17 11:35:33 +02:00
Rolf Bjarne Kvinge 5975ffd6f1 Merge main into net7.0. 2022-10-17 10:21:24 +02:00
Rolf Bjarne Kvinge 2069d6e28a
[apidiff] Skip more logic when legacy Xamarin isn't enabled. (#16347) 2022-10-17 09:26:48 +02:00
Rolf Bjarne Kvinge 71383ff1f0
[xtro] Fix processing common files when not all platforms are selected. (#16349)
We can't process a common-fx.ignore file for a given framework if that
framework isn't included in any of the platforms we're building for.

Example: we can't process common-AppKit.ignore when only iOS is enabled,
because none of the errors listed in common-AppKit.ignore will be reported for
an iOS build.
2022-10-17 09:26:07 +02:00
Rolf Bjarne Kvinge 59cfcd6b3e
[autoformat] Add the ARKit, AVFoundation, AVKit, AdSupport, AssetsLibrary and AuthenticationServices frameworks. (#16348) 2022-10-17 08:22:58 +02:00
Rolf Bjarne Kvinge e43b53b574
[autoformat] Add the AddressBook[UI] frameworks. (#16343) 2022-10-14 16:14:36 +02:00
Rolf Bjarne Kvinge 73ec322dd9
[mtouch] Generate own constants file. (#16321)
Generate own constants file, instead of relying on platform-specific files in
src/, which may or may not exist depending on the enabled platforms.
2022-10-14 09:24:04 +02:00
Rolf Bjarne Kvinge d4e54cccbb
[tools] Build mtouch when Mac Catalyst is enabled. (#16334)
Because we build the partial static registrar for Mac Catalyst using mtouch.
2022-10-14 09:20:47 +02:00
Rolf Bjarne Kvinge 598178e78f
[autoformat] Add the Accelerate, Accessibility and Accounts frameworks. (#16340) 2022-10-14 09:15:58 +02:00
Rolf Bjarne Kvinge 3db9eb29fb
[devops] Auto-hide any existing html reports when a new one is created. (#16259) 2022-10-14 00:38:58 +02:00
Rolf Bjarne Kvinge 7659696c23
[autoformat] Add xharness.csproj. (#16322) 2022-10-13 23:10:08 +02:00
Rolf Bjarne Kvinge 18962171b9 Merge main into net7.0. 2022-10-13 13:36:40 +02:00
Rolf Bjarne Kvinge eec5f62054 Merge main into xcode14.1. 2022-10-13 13:36:23 +02:00
Rolf Bjarne Kvinge 2d9f9c3d1f
[autoformat] Add mtouch.csproj. (#16316)
This also required modifying mtouch.csproj, otherwise the wrong settings would
be applied.
2022-10-13 10:42:41 +02:00
Rolf Bjarne Kvinge 216018cda6
Merge main into xcode14.1. (#16303) 2022-10-13 09:28:06 +02:00
Israel Soto 76a8673260
[SharedWithYou] Added support for Xcode 14.1 b3 (#16199)
* Added macOS support
* Added some missing attributes and a class

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-12 17:48:55 -04:00
Rolf Bjarne Kvinge 74641f120a
[devops] Make each platform its own maestro build. (#16301)
This will hopefully make it easier to correctly subscribe to our maestro feeds
and only pick certain platforms.

It also fixes a problem where publishing wouldn't work unless we were building
for iOS, because the code was assuming that iOS was always enabled.
2022-10-11 23:55:30 +02:00
Rolf Bjarne Kvinge ee7e95dd69
[autoformat] Add mmp.csproj. (#16313) 2022-10-11 22:36:58 +02:00
Rolf Bjarne Kvinge a047ce5cf3
[devops] Add a makefile target to run yamllint on our yaml files. (#16298)
Also fix all our yaml files according to yamllint. This is mostly whitespace changes.
2022-10-10 23:35:25 +02:00
Israel Soto 11b1d1e1c7
[ThreadNetwork] Added support for Xcode 14.1 b3 (#16196)
This PR adds support for Mac and MacCatalyst. Apple says that these
platforms are now supported; framework's headers does not specify them
but do not deny them either, so let's see what intro says about this.

I'm just creating this PR to test it against intro once we can build the
branch.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-10 10:51:50 -04:00
Rolf Bjarne Kvinge 6b0d192131 Merge main into xcode14.1. 2022-10-10 13:02:13 +02:00
Rolf Bjarne Kvinge 9d306f3862 Merge main into net7.0. 2022-10-10 13:01:32 +02:00
Rolf Bjarne Kvinge 6013e06418
[system-dependencies] Check for and install shellcheck and yamllint. (#16285)
Also make the build go into the tools/devops directory, which will run
shellcheck on the bash files. This also required fixing a couple of issues in
one of the bash scripts.

We currently don't use yamllint, but that's coming very soon.
2022-10-10 08:05:51 +02:00
Rolf Bjarne Kvinge dbcf1cadf8
[devops] Add more post-build pipeline branches. (#16286)
* Add net8.0, because that's coming soon.
* Add release-test/\*, because we want to run some automated tests on various
  release configurations, and all the release/\* branches are branch-protected,
  which means CI can't commit any such branch without going through a pull
  request (which needs to be approved, etc.), and that's not very automated at
  all. So add a branch pattern to the post-build pipeline that isn't
  branch-protected.
2022-10-07 18:18:51 +02:00
Rolf Bjarne Kvinge fa778b50e8
[autoformat] Add the DotNetUnitTests project to the projects to autoformat. (#16257) 2022-10-07 08:05:53 +02:00
Rolf Bjarne Kvinge 8bb8d1aa76
Update DOWNLOADS.md with new releases. (#16258)
Also fix the script that computes DOWNLOADS.md to actually use the correct
DOWNLOADS.md location.
2022-10-07 08:05:15 +02:00
Rolf Bjarne Kvinge fb97063227 Merge main into net7.0. 2022-10-06 14:01:27 +02:00
Rolf Bjarne Kvinge 45b97d838e Merge main into xcode14.1. 2022-10-06 13:59:29 +02:00
Rolf Bjarne Kvinge f22ecb5f05
[autoformat] Add xtro projects to the projects to autoformat. (#16239) 2022-10-06 07:30:47 +02:00
Manuel de la Pena ee1855b887
[DevOps] Split the signing of legacy pkgs and dotnet pkgs. (#16183)
This change splits the signing of the pkgs so that we can have botnet
pkgs as early as possible without needing to wait for the legacy ones to
be completed, this will allow to do VS insertions earlier.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-10-04 16:46:38 -04:00
Rolf Bjarne Kvinge c7badeacf1 Merge main into xcode14.1. 2022-10-04 16:21:54 +02:00
Rolf Bjarne Kvinge 651acc9ec5 Merge main into net7.0. 2022-10-04 16:21:28 +02:00
Rolf Bjarne Kvinge 0991fae971
[net7.0] [devops] Don't fail building nugets if we dno't have files of every possible extension. (#16221)
Depending on the enabled platforms, we might not have files with all the listed extensions.
2022-10-04 08:17:03 +02:00
Rolf Bjarne Kvinge fd2ee69c2b Merge remote-tracking branch 'origin/xcode14.1' into bump-main-in-xcode14.1-2022-09-28 2022-10-03 22:28:13 +02:00
Rolf Bjarne Kvinge d4e6d4a3c2
[tools] Always weak link the SensorKit framework. Fixes #9938. (#16215)
The SensorKit framework isn't available on all devices (for instance iPads),
and as such we can't link with it strongly.

This seems to be a bug in Apple's toolchain, because Xcode runs into the same
problem if you try to use an app referencing SensorKit on an iPad.

Fixes https://github.com/xamarin/xamarin-macios/issues/9938.
2022-10-03 22:19:02 +02:00
Rolf Bjarne Kvinge 4046acc3d0
[autoformat] Extract some logic into its own script file. (#16200)
We have some problems when autoformatting PRs and the PR branch isn't fully
up-to-date with regards to the target branch.

I believe this is what happens:

1. When a PR is created (or modified), GitHub Actions will merge the PR branch
   with the target branch, and parse/load the merged *.yml files.
2. Then when we run the autoformatter, we're working on the tip of the PR
   branch (and not the merged result).
3. This means that we were using the list of projects to autoformat from the
   merged branch, but exeuting on the PR branch. This resulted in spurious
   autoformatting, because the autoformatted would autoformat more code than
   expected.

The fix I'm implementing is to move the list of projects to autoformat to a
separate script in source code. That way we'll work upon the list of projects
as they show up in the PR branch, and not the merged results.
2022-10-03 22:18:28 +02:00
Rolf Bjarne Kvinge 2cb15e1608
[devops] Make absolutely sure there are no artifacts around from previous builds. (#16207) 2022-10-03 22:17:07 +02:00
VS MobileTools Engineering Service 2 78550909a1
[xcode14.1] [ShareWithYou] Fix linker problem due to a bad yy. Fixes #16084 (#16187)
Fixes https://github.com/xamarin/xamarin-macios/issues/16084

Backport of #16137

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-03 12:10:31 -04:00
Alex Soto 27e6958b0a
[xcode14.1] Bump to Xcode 14.1 Beta 3 (#16010)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-10-03 17:24:41 +02:00
Rolf Bjarne Kvinge 8b247307ab Merge main into net7.0. 2022-09-30 14:02:34 +02:00
Rolf Bjarne Kvinge 9d0687191d
[autoformat] Add dotnet-linker to the projects to autoformat. (#16178) 2022-09-30 09:32:42 +02:00
Rolf Bjarne Kvinge ed612dcd6e Merge main into net7.0. 2022-09-28 17:17:10 +02:00
Rolf Bjarne Kvinge 7cc91e0c53 Merge main into xcode14.1. 2022-09-28 17:14:31 +02:00
Rolf Bjarne Kvinge 9e0fecc4ff
Autoformat msbuild projects. (#16132)
All other changes should be blank space only: https://github.com/xamarin/xamarin-macios/pull/16132/files?w=1

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-09-28 16:25:35 +02:00
Rolf Bjarne Kvinge a3ee8ae0d5
[devops] Stop testing on macOS 10.15. (#16147)
The 10.15 bots are going away in a few months, and in any case macOS 10.15 is
not supported by Apple anymore, so stop testing on macOS 10.15.
2022-09-28 07:59:37 +02:00
Rolf Bjarne Kvinge 4756553790
[release] Move release scripts here. (#16131)
These files have been copied as-is from maccore/release.
2022-09-27 09:49:32 +02:00
Rolf Bjarne Kvinge 9c3458dc33 Merge main into xcode14.1. 2022-09-26 22:46:59 +02:00
Rolf Bjarne Kvinge 56165a77ec Merge main into net7.0. 2022-09-26 22:44:48 +02:00
Rolf Bjarne Kvinge deb0faa4f2
Autoformat cecil-tests.csproj. (#16103)
All other changes should be blank space only.

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-09-26 21:00:28 +02:00
Rolf Bjarne Kvinge 13e3d85a41
[devops] Enable legacy xamarin tests by default. (#16115)
Now that it's possible to disable legacy xamarin tests, we must also
enable
them after using 'skip-all-tests' if we want to run legacy tests.

Otherwise we end up only executing .NET tests:

f592de721d (commitcomment-84832124)
2022-09-26 17:39:23 +02:00
Rolf Bjarne Kvinge b82b1685a7
Use Environment.SpecialFolder.UserProfile, not SpecialFolder.Personal. (#16017)
Context: dotnet/runtime#68610
Context: https://github.com/xamarin/xamarin-android-tools/commit/0be567a9

In Mono and .NET prior to .NET 8, the
[`System.Environment.SpecialFolder`][0]`.Personal` enum value would refer to
`$HOME` on Unix platforms.

This will be changing in .NET 8, such that
`Environment.SpecialFolder.Personal` will instead refer to
`$XDG_DOCUMENTS_DIR` (if set) or `$HOME/Documents`.  This is for "semantic
compatibility" with .NET on Windows.

Replace usage of `Environment.SpecialFolder.Personal` with
`Environment.SpecialFolder.UserProfile`, so that our code continues to work as
expected under .NET 8.

[0]: https://docs.microsoft.com/en-us/dotnet/api/system.environment.specialfolder?view=net-6.0
2022-09-23 16:29:19 +02:00
Rolf Bjarne Kvinge 5837d5a1e0
[tests] Update tests to cope with a different default platform than the latest version. (#16063) 2022-09-23 14:08:40 +02:00
Rolf Bjarne Kvinge 63cc404abb
[devops] Fix tests after latest changes. (#16074)
Fix tests after latest changes (in 5902c865b7).
2022-09-23 13:53:07 +02:00
Rolf Bjarne Kvinge 45ccf885a1
[actions] Autoformat xibuild.csproj (#16059)
Also fix a merge conflict that made autoformatting not work, and make sure to not add any temporary files to the diff.

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-09-22 13:07:01 +02:00
Rolf Bjarne Kvinge d897557d7c
[devops] Don't fail if some legacy platforms aren't installed. (#16052)
Legacy might be disabled.
2022-09-22 10:18:49 +02:00
Rolf Bjarne Kvinge 15e9683a53 Bump main in net7.0. 2022-09-22 07:55:18 +02:00
Rolf Bjarne Kvinge f4d5e6eeab Merge main into xcode14.1. 2022-09-22 07:50:58 +02:00
Rolf Bjarne Kvinge 5902c865b7
[devops] Add the job attempt to the html report as well. (#15908)
This makes sure subsequent attempts also uploads the html report instead of
failing because there's already an html report with the same name.
2022-09-22 07:34:24 +02:00
VS MobileTools Engineering Service 2 abae256b40
[main] [mtouch] Automatically disable bitcode if using Xcode 14+. Fixes #15210. (#16054)
Apple has deprecated bitcode, and will apparently reject app submissions
containing bitcode starting with Xcode 14. So automatically disable bitcode if
building using Xcode 14+ (and show a warning so that app developers can remove
the 'MtouchEnableBitcode' property from their project files).

Fixes https://github.com/xamarin/xamarin-macios/issues/15210.

Backport of #15804

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-09-22 07:32:33 +02:00
Rolf Bjarne Kvinge b9ea45f0aa
[tools] Create an empty package-introspection-dependencies.zip file if legacy isn't enabled. (#16050) 2022-09-22 07:21:17 +02:00
Rolf Bjarne Kvinge ed4c89d0d8
Make package signing work with some platforms disabled. (#16039)
Change package signing so that we only try to sign packages for platforms that aren't disabled.

This makes the 'Prepare packages' job green in Azure Devops.

The 'Prepare Release' job still fails in the 'Convert NuGet to MSI' step (for
the branch I've been working on), because the package names are too long for
MSIs. This should be resolved for a proper release branch (i.e. when this PR
is merged), because package names are much shorter in a release branch.

Example results: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=6711641&view=results

Backport of #16028.
2022-09-21 20:46:13 +02:00
Rolf Bjarne Kvinge 231f66034d
[devops] We don't need VSMac installed anymore. (#15998) 2022-09-21 20:38:57 +02:00
VS MobileTools Engineering Service 2 306a00bb42
[main] [release/6.0.4xx-xcode14] [apidiff] Don't compare to legacy platforms that aren't included in the build. Fixes #16011. (#16032)
Don't try to compare legacy vs .NET for platforms that aren't included in the build, because this happens:

> make: *** No rule to make target 'output/diff/dotnet/legacy-diff/Microsoft.macOS.Ref/ref/net6.0/Microsoft.macOS.html', needed by 'output/api-diff.html'.  Stop.

We do this by not hardcoding the list of legacy platforms, but instead starting with DOTNET_PLATFORMS variable (which won't contain platforms that aren't included in the build), and then removing any .NET-only platforms (i.e. Mac Catalyst).

Also fix the `update-refs` target to not try to update refs for platforms that aren't enabled.

Fixes https://github.com/xamarin/xamarin-macios/issues/16011.


Backport of #16029

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-09-21 14:24:13 +02:00
Rolf Bjarne Kvinge ffd84ad15a
[devops] Remove unused powershell functions. (#16035) 2022-09-21 14:22:55 +02:00
Rolf Bjarne Kvinge 52a332cb9b
[dotnet/msbuild] Add support for skipping/adding items (and bundles) to be signed. Fixes #15594. (#15894)
Add support for two new MSBuild item groups:

* CodesignBundle: lists additional app bundles inside the main bundle which should
  be signed (typically manually copied into the app bundle by the developer).
* SkipCodesignItems: lists files we'd sign by default, but which shouldn't be signed.

Fixes https://github.com/xamarin/xamarin-macios/issues/15594.
2022-09-21 11:38:03 +02:00
Rolf Bjarne Kvinge 4dcfaa3d05 Merge main into xcode14.1. 2022-09-20 13:57:49 +02:00
Rolf Bjarne Kvinge 4c3fccc8c7
[devops] Don't try to upload a mac test package if it doesn't exist. (#15995) 2022-09-19 14:12:22 +02:00
Rolf Bjarne Kvinge b230ef3601 Merge remote-tracking branch 'origin/main' into bump-main-in-xcode14.1-2022-09-16 2022-09-19 14:11:45 +02:00
Rolf Bjarne Kvinge 85e3332b82 Merge remote-tracking branch 'origin/main' into bump-main-in-net7.0-2022-09-16 2022-09-19 14:10:49 +02:00
Rolf Bjarne Kvinge 55085e1186
[devops] We still need Mono even if the legacy Xamarin build is disabled. (#15997)
We use mono in a number of places.
2022-09-19 12:02:31 +02:00
Rolf Bjarne Kvinge 77a95b248d
[devops] Only add platforms we're building for into WorkloadRollback.json. (#15973)
Also move bash code from yml to a .sh file for easier reading, writing and
debugging.
2022-09-16 18:42:26 +02:00
Rolf Bjarne Kvinge 01352fa675
[tools] We still need to build mtouch+mmp for .NET. (#15965)
Because we use mtouch and mmp to build the partial static registrar code for .NET.

Eventually we'll look into generating the partial static registrar some other
way, but that's for another time.
2022-09-16 18:37:13 +02:00
Rolf Bjarne Kvinge 4215eae4a3 Merge main into xcode14.1. 2022-09-16 18:35:48 +02:00
Rolf Bjarne Kvinge 40b3831bc7 Merge remote-tracking branch 'origin/main' into bump-main-in-net7.0-2022-09-16 2022-09-16 18:32:01 +02:00
Rolf Bjarne Kvinge 77bba5ce3a
[devops] Add some debug code to figure out a random error. (#15947)
The 'Expand tests.' step sometimes fails with:

> ##[error]Bash exited with code '1'.

Which is very unhelpful. Make bash more verbose to see if we can figure out what's going wrong.
2022-09-15 12:00:31 +02:00
Rolf Bjarne Kvinge 3545f9ce23
[devops] Remove unused file. (#15945)
It seems this file hasn't been used since b1ea4b51aa.
2022-09-15 11:59:49 +02:00
Rolf Bjarne Kvinge 1f3fb41d63
[devops] Improve check for crash reports before collecting them. (#15938)
Otherwise this happens if the directory is empty:

    + test -d /Users/runner/Library/Logs/DiagnosticReports
    + zip -9rj /Users/runner/work/1/s/crash-reports.zip /Users/runner/Library/Logs/DiagnosticReports

    zip error: Nothing to do! (try: zip -9rj /Users/runner/work/1/s/crash-reports.zip . -i /Users/runner/Library/Logs/DiagnosticReports)
2022-09-15 11:58:35 +02:00
Rolf Bjarne Kvinge 2d0c1c5462
[devops] Don't try to publish test results unless there are any tests results. (#15911)
Don't try to publish test results unless there are any tests results.

Fixes this [horribly/amusingly incorrect error][1] in the publish task:

    ##[error]Error: Failed find: ENOENT: no such file or directory, lstat '/System/Library/Frameworks/iTunesLibrary.framework/Versions/Versions'
    ##[section]Finishing: Publish NUnit Device Test Results

Also stop failing the task on failing tests, because we already have another task that fail if there are failing tests (the task that runs the tests).

[1]: https://github.com/microsoft/azure-pipelines-tasks/issues/16786
2022-09-15 10:58:35 +02:00
Rolf Bjarne Kvinge f93e5fba12 Merge remote-tracking branch 'origin/main' into bump-main-in-xcode14-2022-09-13 2022-09-13 11:00:35 +02:00
Rolf Bjarne Kvinge dea88f7fed Merge remote-tracking branch 'origin/main' into bump-main-in-net7.0-2022-09-13 2022-09-13 10:59:01 +02:00
Rolf Bjarne Kvinge e56103479c
[devops] Don't create legacy iOS/Mac symlinks unless legacy build is enabled. (#15930)
* Move the bash in the yml file to a separate script file to ease reading, writing & debugging.
* Don't install any symlinks if legacy Xamarin isn't enabled.
* Only install the iOS / macOS symlink if the corresponding build is enabled.
2022-09-13 08:37:05 +02:00
Rolf Bjarne Kvinge 9db89b6188
[devops] Only install XI/XM package if corresponding build is enabled. (#15931)
Only install the XI and/or XM package if the corresponding part of the build is enabled.

Also don't install either if the legacy Xamarin build is disabled.
2022-09-13 08:36:11 +02:00
Rolf Bjarne Kvinge 1552a1e20b
[devops] Update and add tests (#15920) 2022-09-12 11:39:52 +02:00
Rolf Bjarne Kvinge 9f0b794d28 Merge remote-tracking branch 'origin/main' into bump-main-in-net7.0-2022-09-09 2022-09-09 16:55:20 +02:00
Rolf Bjarne Kvinge 9bca30dce6 Merge remote-tracking branch 'origin/main' into bump-main-in-xcode14-2022-09-09 2022-09-09 16:54:19 +02:00
Rolf Bjarne Kvinge ea855fda92
[devops] A missing test must still be reported (as a failing test). (#15901) 2022-09-09 16:53:31 +02:00
Rolf Bjarne Kvinge 2bb0e50ce4
[devops] Always send off a test summary. (#15883)
Even if it's just to say we couldn't compute a test summary.
2022-09-09 13:21:25 +02:00
Rolf Bjarne Kvinge 5abbae36ca
[devops] Fix double closing details tag when creating test results. (#15902)
Also simplify the code a bit to reduce duplicated code.
2022-09-09 10:50:55 +02:00
TJ Lambert de7dccd8b0
[AVKit and AVRouting] Updates for Xcode14 Beta3 (#15811)
This PR has the AVKit updates and introduces the AVRouting bindings that
are interconnected with AVKit

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-09-08 15:13:15 -05:00
Israel Soto 504a7df47e
[LocalAuthentication] Add support for Xcode 14 b1-3 (#15873) 2022-09-08 15:16:37 -04:00
Rolf Bjarne Kvinge c232fc1583
[devops] Improve debug statements. (#15904)
* Special characters in powershell are rather, hrm, _uncommon_, in that
  they're prefixed with a backtick instead of backslash. Fix code accordingly.
* Use 'Write-Debug' instead of 'Write-Host' in a few places.
* Simplified/improved a few debug statements to make them clearer/less redundant.
* Added tabs in a few places to make debug statements indent properly.
* Fixed a typo.
2022-09-08 17:52:57 +02:00
Rolf Bjarne Kvinge 5d2b9511f4
[devops] Fix a few exceptions when parsing test results to report failures instead. (#15899) 2022-09-08 17:34:02 +02:00
Rolf Bjarne Kvinge c2f743d182
[devops] Improve a throw statement to have more information. (#15900) 2022-09-08 17:33:00 +02:00
Rolf Bjarne Kvinge 605ee8b58f
[devops] A crashed test is also a failed test, so don't report that all tests succeeded if there are any crashed tests. (#15903) 2022-09-08 17:32:04 +02:00
Rolf Bjarne Kvinge aa8ded8e51
[runtime] Store assemblies' MVID in the generated static registrar code. (#15795)
This will increase app size a little bit: the space for the MVID + 4 bytes for each
assembly, but we'll be able to validate and show a helpful error message if the generated
static registrar code does not match the assembly loaded at runtime.

It's also a step toward per-assembly static registration (ref: #12067).
2022-09-08 10:34:05 +02:00
Rolf Bjarne Kvinge 9a52a6fbe7
[devops] Fix paths to VSDrops after latest changes to make relaunching jobs work. (#15891) 2022-09-08 07:59:14 +02:00
Rolf Bjarne Kvinge 815d91fbc9
[devops] Fix tests. (#15885)
$Env:PWD doesn't seem to work on the bots, so try something else.
2022-09-07 21:14:10 +02:00
Rolf Bjarne Kvinge 681fce6036 Merge remote-tracking branch 'origin/net7.0' into bump-main-in-net7.0-2022-09-07 2022-09-07 11:38:51 +02:00
Rolf Bjarne Kvinge ea4b193303 Merge remote-tracking branch 'origin/main' into bump-main-in-net7.0-2022-09-07 2022-09-07 10:57:58 +02:00
Rolf Bjarne Kvinge 433c48a35e Merge remote-tracking branch 'origin/main' into bump-main-in-xcode14-2022-09-07 2022-09-07 10:56:00 +02:00
Rolf Bjarne Kvinge 494e4f306d
[devops] Make test steps fail if there are any test failures. (#15764)
This makes it possible to re-run tests when they fail (since Azure DevOps only
allows re-running failed jobs).

It shouldn't affect any release pipelines anymore, because the release
pipeline only depends on the job that builds the packages now.

This also involved some CI changes, to be able to figure out the last test results when a test step is executed multiple times. Also, the GitHub comment will now state the run attempt (if >1) for each test ([example](https://github.com/xamarin/xamarin-macios/pull/15764#issuecomment-1235891944))
2022-09-07 10:38:23 +02:00
Israel Soto a869ea01c0
[ExtensionKit] Add support for Xcode 14 beta 1 & 2 (#15548) 2022-09-06 12:02:25 -04:00
Rolf Bjarne Kvinge ea6048686a
[devops] Move bash script from yaml to it's own bash file. (#15861)
This makes it easier to both read & write bash code (syntax highlighting in
the script file, shellscript to validate, etc.), as well as testing out the
script locally.
2022-09-06 16:17:25 +02:00
Rolf Bjarne Kvinge 7858937c33 🪄 2022-09-06 14:41:21 +02:00
Rolf Bjarne Kvinge 4cc0bde648
[tests] Introspection needs more time on older macOS bots. (#15862) 2022-09-06 14:05:11 +02:00
Rolf Bjarne Kvinge 2197e2b857
[devops] Upload crash reports from the build as well. (#15863) 2022-09-06 09:12:47 +02:00
Rolf Bjarne Kvinge 692c71bd8c Merge remote-tracking branch 'origin/net7.0' into backport-pr-15761-to-net7.0 2022-09-05 21:50:14 +02:00
Rolf Bjarne Kvinge d4f5979f3f [dotnet] Skip installing the custom dotnet/runtime workloads when installing on test bots.
It seems to work locally for some reason 🤷‍♂️
2022-09-02 18:42:36 +02:00
Rolf Bjarne Kvinge 67d7c79cc5 Add .NET bootstrapping to the install-workloads script. 2022-09-02 18:23:36 +02:00
Rolf Bjarne Kvinge 3a2cdaf9c6 Move bash script from yaml to bash file. 2022-09-02 18:23:10 +02:00
Manuel de la Pena ae42d556fe
[ShareWithYou] Add support for Xcode 14 beta 6. (#15819)
Co-authored-by: Alex Soto <alex@alexsoto.me>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-09-02 10:46:52 -04:00
Rolf Bjarne Kvinge 75112818b6
[runtime] Use a custom native -> managed trampoline for calling NSObject.InvokeConformsToProtocol from the generated static registrar code. (#15830)
This avoids one case where we we embed metadata tokens to a different assembly
in the generated static registrar code.

This is required for supporting per-assembly static registration
(https://github.com/xamarin/xamarin-macios/issues/12067).
2022-09-02 15:54:34 +02:00
Jamie Magee 0d8eafc0e4
Add `$schema` to `cgmanifest.json` (#15842)
Co-authored-by: Jamie Magee <jamie.magee@microsoft.com>
2022-09-02 15:32:13 +02:00
TJ Lambert 7bd98383e1
[HealthKit] Update bindings for Xcode 14 beta 1-4 (#15612)
This one has been a toughy 😮‍💨
@mandel-macaque I am creating the draft PR and here is a gist with the MacModern failures that you mentioned you would take a closer look at: https://gist.github.com/tj-devel709/24f5c63d4b698a0e2387524a0d2666c6

There were also monotouch-test failures that seem to be related to enabling mac that I could use some help with as well.

Lastly, @chamons there was a failing Cecil test regarding ios in DidGenerateEvent method found here: https://gist.github.com/tj-devel709/2c8aee7325c0c2751e29269d3eb77fef. I did not touch this method so I am not sure why this would be a problem.
Here is the Cecil failure: https://gist.github.com/tj-devel709/cfb2576c75de2ee100a8f2b7ee6e3923

Thanks for the help!

Edit *: Issues mentioned in the code comments
https://github.com/xamarin/maccore/issues/2609
https://github.com/xamarin/maccore/issues/2610

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2022-09-01 10:24:35 -05:00
Rolf Bjarne Kvinge 496acb2a05
[devops] Fix echo command that prints a comment. (#15824)
Fix echo command so that the text to be printed isn't interpreted as a
comment.

Really everything should be quoted in bash :/
2022-09-01 15:30:20 +02:00
Rolf Bjarne Kvinge b9b6ac2ec3
[devops] Stop doing things that don't work. (#15828)
There's no builder.keychain on the bots that submit signing requests.
2022-08-31 16:31:47 -04:00
Rolf Bjarne Kvinge 016c156fa3
Merge main into xcode14. (#15803) 2022-08-31 14:22:51 +02:00
Rolf Bjarne Kvinge 4922bf4570 Merge remote-tracking branch 'origin/main' into bump-main-in-net7.0-2022-08-31 2022-08-31 13:45:17 +02:00
Rolf Bjarne Kvinge 4c36652927
[devops] Make sure no errors are ignored during signing. (#15802)
Make sure bash doesn't ignore any errors during signing. This makes it easier
to diagnose signing failures, because they don't show up in weird ways later.
2022-08-31 12:10:43 +02:00
Rolf Bjarne Kvinge 8f1b5942e2 Merge remote-tracking branch 'origin/net7.0' into backport-pr-15761-to-net7.0 2022-08-31 10:22:23 +02:00
VS MobileTools Engineering Service 2 04c566d383
[xcode14] [CI] Bump microbuild. (#15815)
Backport of #15813

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-08-30 16:05:14 -04:00
VS MobileTools Engineering Service 2 e1b8eff6a9
[net7.0] [CI] Bump microbuild. (#15814)
Backport of #15813

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-08-30 16:04:56 -04:00
Manuel de la Pena 409c80dd9c
[CI] Bump microbuild. (#15813) 2022-08-30 16:00:07 -04:00
Rolf Bjarne Kvinge ff3aeb5073 Merge remote-tracking branch 'origin/main' into bump-main-in-xcode14-2022-08-30 2022-08-30 11:14:47 +02:00
Rolf Bjarne Kvinge fa6971d6f2
[devops] Remove unused file. (#15791)
Looks like the usage of this file was removed in b1ea4b51aa.
2022-08-30 09:43:56 +02:00
Rolf Bjarne Kvinge 80db3ab2cf
[tools] Only build mtouch if iOS, tvOS or watchOS is enabled. (#15753) 2022-08-29 16:13:18 +02:00
Rolf Bjarne Kvinge a09b971788 [src] Quiet the build a bit. (#15737) 2022-08-29 14:15:02 +02:00
VS MobileTools Engineering Service 2 246aa83443
[main] [ci] Add support to main for multi-targeting in VS (#15786)
Context: https://github.com/xamarin/yaml-templates/pull/180
Context: https://github.com/xamarin/yaml-templates/pull/195
Context: https://github.com/xamarin/yaml-templates/pull/199
Context: https://github.com/xamarin/xamarin-macios/pull/15761

Updates the build to use the latest MSI generation template. The v3
template uses the latest changes from arcade which include a large
refactoring, support for multi-targeting, and support for workload pack
group MSIs.

The build will now produce two different VS Drop artifacts.  The MSI and
VSMAN files generated for SDK packs have been split out into a new
`vsdrop-multitarget-signed` artifact, allowing us to include multiple
versions of the SDK packs in VS.

All of the SDK packs have been renamed to include a `.net6` suffix to
match the pack aliases that will be referenced in the .NET 7 manifests.


Backport of #15776

Co-authored-by: Peter Collins <pecolli@microsoft.com>
2022-08-29 12:08:39 +02:00
Rolf Bjarne Kvinge 5ca5a963bc
[tests] Improve handling timed out macOS tests. (#15747) 2022-08-29 12:06:25 +02:00
Rolf Bjarne Kvinge 38bd8191eb Merge remote-tracking branch 'origin/net7.0' into backport-pr-15761-to-net7.0 2022-08-29 11:55:45 +02:00
Peter Collins 934f677c47 Add MSI and VS Drop changes needed for multitargeting 2022-08-26 11:28:56 -04:00
Rolf Bjarne Kvinge d63eaf2d5e
[tools] Don't build legacy stuff unless legacy is enabled. (#15773) 2022-08-26 15:36:35 +02:00
Rolf Bjarne Kvinge b42a1529a4 [devops] Install template packs too on bots. 2022-08-26 13:36:35 +00:00
Rolf Bjarne Kvinge 731e15a9b8 [tests] Add test case for building a net6.0 project. 2022-08-26 13:36:35 +00:00
Rolf Bjarne Kvinge 4289148b28 Merge remote-tracking branch 'origin/main' into bump-main-in-xcode14-2022-08-26 2022-08-26 13:24:27 +02:00
Rolf Bjarne Kvinge a932ca2d7c Merge remote-tracking branch 'origin/main' into bump-main-in-net7.0-2022-08-26 2022-08-26 13:22:24 +02:00
Rolf Bjarne Kvinge 1228fda1a8
[nnyeah] Don't build nnyeah unless the iOS build is enabled. (#15752) 2022-08-25 11:31:42 +02:00
Rolf Bjarne Kvinge 3b1037e56f
[devops] Make the binlog artifact name unique. (#15735)
Make the binlog artifact name unique across build attempts, so that uploading the binlog archive doesn't fail in subsequent build attempts:

> ##[error]Artifact all-binlogs-test-simulator_cecil-6594281 already exists for build 6594281.
2022-08-25 09:57:31 +02:00
Rolf Bjarne Kvinge 222c0ea824
[apidiff] Fix apidiff for .NET 7. (#15736)
This involved:

* Make the mono-api-info and mono-api-diff tools run with .NET 7 (instead of
  requiring .NET 6).
* Make the code cope with the fact that we're comparing .NET 6 assemblies (in
  a net6.0 directory) with .NET 7 assemblies (in a net7.0 directory).

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-08-24 11:47:41 +02:00
Rolf Bjarne Kvinge 0edc1551c8
[xcode14] Merge main into xcode14. (#15722)
Merge main into xcode14 to pick up the latest improvements on main.
2022-08-23 17:34:16 +02:00
Rolf Bjarne Kvinge 771f694961
[devops] Ignore failures to install brew components. (#15719)
Hopefully works around this problem:

    [...]
    [08:14:16 VRB] Preloading sudo access since brew installation cannot be run as root
    [08:14:16 VRB] Exec[0] (flags: RedirectStdout, RedirectStderr, Default): /usr/bin/sudo -v
    [08:14:16 DBG] Adding main (originally refs/heads/main) to telemetry
    [08:14:16 DBG] Adding main (originally refs/heads/main) to telemetry
    [08:14:16 VRB] Exec[0] exited 1
    Unhandled exception. Xamarin.Provisioning.Exec+ExitException: /usr/bin/sudo terminated with exit code 1
       at Xamarin.Provisioning.Exec.Run(ExecFlags flags, String command, String[] arguments) in /Users/runner/work/1/s/Provisionator/Exec.cs:line 297
       at Xamarin.Provisioning.ProvisioningScript.BrewPackages(BrewOptions options, String[] packages) in /Users/runner/work/1/s/Provisionator/ProvisioningScript_Brew.cs:line 104
       at Xamarin.Provisioning.ProvisioningScript.BrewPackages(String[] packages) in /Users/runner/work/1/s/Provisionator/ProvisioningScript_Brew.cs:line 23
       at Submission#0.<<Initialize>>d__0.MoveNext()
    --- End of stack trace from previous location ---
       at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray`1 precedingExecutors, Func`2 currentExecutor, StrongBox`1 exceptionHolderOpt, Func`2 catchExceptionOpt, CancellationToken cancellationToken)
       at Microsoft.CodeAnalysis.Scripting.Script`1.RunSubmissionsAsync(ScriptExecutionState executionState, ImmutableArray`1 precedingExecutors, Func`2 currentExecutor, Func`2 catchExceptionOpt, CancellationToken cancellationToken)
       at Xamarin.Provisioning.ProvisioningScript.RunScriptAsync(String scriptContents, String scriptFile, CancellationToken cancellationToken) in /Users/runner/work/1/s/Provisionator/ProvisioningScript.cs:line 118
       at Xamarin.Provisioning.Entry.MainAsync(String[] args) in /Users/runner/work/1/s/Provisionator/Entry.cs:line 256
       at Xamarin.Provisioning.Entry.MainAsync(String[] args) in /Users/runner/work/1/s/Provisionator/Entry.cs:line 339
       at Xamarin.Provisioning.Entry.Main(String[] args) in /Users/runner/work/1/s/Provisionator/Entry.cs:line 60
    ##[error]The process '/Users/builder/azdo/_work/_tool/provisionator/0.2.635/x64/provisionator' failed with exit code null
2022-08-23 15:25:57 +02:00
Rolf Bjarne Kvinge 105a12d637 Merge remote-tracking branch 'origin/main' into net7.0-merge-main-2022-08-23 2022-08-23 11:08:56 +02:00
Rolf Bjarne Kvinge 7dceae40dc
[xcode14] Bump api-tools to get better breaking changes detection. (#15689)
New commits in rolfbjarne/api-tools:

* rolfbjarne/api-tools@373fc1b Allow changes to ObjCRuntime.Constants.SdkVersion too without considering them breaking changes

Diff: 9b9a5bb668..373fc1b50a
2022-08-22 18:41:46 +02:00
Rolf Bjarne Kvinge d66c4da1af Merge remote-tracking branch 'origin/main' into xcode14-merge-main-2022-08-22 2022-08-22 18:38:32 +02:00
Rolf Bjarne Kvinge a58dfef1b4
[tools] Fix issue when doing api comparison for PRs with multiple commits (#15710)
Fix an issue when doing API comparison for PRs with multiple commits, where we'd only do the comparison for the last commit, by not ignoring the provided base hash in the compare-commits script.
2022-08-22 18:32:08 +02:00
Alex Soto 1d40aa42dd
[xcode14] Bump to latest Xcode 14 Beta 5 (#15663)
* [xcode14] Bump to latest Xcode 14 Beta 5

* [CloudKit] Fix cloudkit intro on tvOS

* Revert "[Tests] Fix an monotouch-test test that landed broken. (#15503)"

This reverts commit 161de84bcf.

* Update tools/common/StaticRegistrar.cs

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>

* Fix typo

* [CHIP] Tell our drivers to not link CHIP at all

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-08-10 11:11:40 -04:00
Steve Hawley 10b6dffec0
better help, change priority of processing help request. (#15660) 2022-08-09 10:14:48 -04:00
Manuel de la Pena 3962f6cb34
[SharedWithYouCore] Add new framework for xcode14. (#15634) 2022-08-08 19:41:32 -04:00
Manuel de la Pena d9cd069f07
[BackgroundAssets] Add new framework from Xcode1 4 beta 4. (#15649)
Co-authored-by: Alex Soto <alex@alexsoto.me>
2022-08-08 09:38:56 -04:00
Manuel de la Pena d02dd49235
[PushToTalk] Add new framework for Xcode 14 bet4. (#15645)
Co-authored-by: Alex Soto <alex@alexsoto.me>
2022-08-07 14:07:21 -04:00
Manuel de la Pena 555a2446f8
[ExecutionPolicy] Add support for xcode14 beta 4. (#15641) 2022-08-07 13:58:47 -04:00
Alex Soto af409e9f9e [net7.0] bump linker to net7.0 2022-08-05 18:03:40 -04:00
Alex Soto 1434ede326 Merge remote-tracking branch 'xamarin/main' into net7.0-a-new-hope 2022-08-05 17:58:58 -04:00
Steve Hawley 8858da6bf3
[Nnyeah] doc'n update (#15646) 2022-08-05 16:35:25 -04:00
Manuel de la Pena 7749b91153
[DeviceCheck] Add support for Xcode 14 beta 4. (#15639) 2022-08-05 11:51:11 -04:00
Steve Hawley d4e827ce20
[nnyeah] Added code to look up the legacy platform dll instead of requiring it. (#15631)
* Added code to look up the legacy platform dll instead of requiring it.
2022-08-05 10:21:52 -04:00
Steve Hawley d34cbe230c
Better error message for ctors that we can't get to anymore. (#15378)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-08-04 15:34:28 -04:00
VS MobileTools Engineering Service 2 d08af456a8
[xcode14] [CI] Make sure we do not have pkgs from other builds. (#15624)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-08-04 10:40:35 -04:00
Manuel de la Pena 182bee91b7
[CI] Make sure we do not have pkgs from other builds. (#15619) 2022-08-04 10:31:46 -04:00
Manuel de la Pena 57adecc437 Merge branch 'main' into xcode14-merge-main 2022-08-03 10:34:56 -04:00
Manuel de la Pena 8a17b2592f
[CI] List the installed frameworks in the test bot. (#15611) 2022-08-03 10:25:20 -04:00
Rolf Bjarne Kvinge 29df69192f
[nnyeah] Return a non-zero exit code if something goes wrong. (#15450) 2022-08-02 19:28:15 -04:00
Steve Hawley f069898a29
[nnyeah] update documentation (#15592)
* update documentation

* clean up mark down
2022-08-02 11:11:10 -04:00
Manuel de la Pena 4c4b906bc4 [Xcode14] Merge main into xcode14. 2022-07-26 11:15:34 -04:00
Chris Hamons bfa035c615
[mlaunch] Fix permisisons after extracting from nuget (#15566)
* [mlaunch] Fix permisisons after extracting from nuget

- A side effect of ac1fa25816 is that the permission of bin/mlaunch is no longer +x for non-root, which means it is unusable.

* Apply suggestions from code review

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>

* Apply fix to app bundle mlaunch as well

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-07-25 18:08:42 -04:00
Steve Hawley 0b872a1683
[nnyeah] Fix for branch targets and AVMediaTypes (#15561)
* Fix for branch targets and AVMediaTypes
2022-07-22 10:24:40 -04:00
VS MobileTools Engineering Service 2 811dde665a
[CI] Remove older pkgs in the system to make sure we are not running the tests with an older version. (#15547)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-07-20 12:33:16 -04:00
Steve Hawley 8983e56be0
fix incorrect attribute (#15549) 2022-07-20 12:11:28 -04:00
VS MobileTools Engineering Service 2 263410f3da
[devops] Try parallelize less during the API diff build. (#15536)
For some reason the C# compilers crash a lot during the build in src/ when
building for the API diff (but not the normal build!). So test the theory that
we're overloading the bot in question (OOM maybe?) by slowing down a bit.

I have to say that if this works and the theory is proven, it's kind of sad
that after over a decade doing -j8 the bot situation has gotten worse...

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-07-19 19:20:26 -04:00
Manuel de la Pena 3fb77838b2
[CI] Remove older pkgs in the system to make sure we are not running the tests with an older version. (#15545) 2022-07-19 18:24:18 -04:00
Steve Hawley f378a38bcf
Completed NFloat mappings (#15537) 2022-07-18 14:48:59 -04:00
Rolf Bjarne Kvinge 0021abb0f5
[devops] Try parallelize less during the API diff build. (#15471)
For some reason the C# compilers crash a lot during the build in src/ when
building for the API diff (but not the normal build!). So test the theory that
we're overloading the bot in question (OOM maybe?) by slowing down a bit.

I have to say that if this works and the theory is proven, it's kind of sad
that after over a decade doing -j8 the bot situation has gotten worse...

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-07-18 01:42:47 -04:00
Rolf Bjarne Kvinge 12925a7952
[xcode14] Merge main into xcode14. (#15502)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
2022-07-15 10:22:11 +02:00
Steve Hawley 0731d6d8bd
limit to one reference to Microsoft.iOS (#15477) 2022-07-14 10:27:24 -04:00
dotnet-maestro[bot] ec949c9991
[net7.0] Update dependencies from dotnet/installer (#15426)
* Update dependencies from https://github.com/dotnet/installer build 20220707.5

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-preview.6.22306.4 -> To Version 7.0.100-preview.7.22357.5

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22273.1 -> To Version 7.0.100-1.22354.1 (parent: Microsoft.Dotnet.Sdk.Internal

* Update global.json

* Update dependencies from https://github.com/dotnet/installer build 20220708.13

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-preview.6.22306.4 -> To Version 7.0.100-preview.7.22358.13

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22273.1 -> To Version 7.0.100-1.22354.1 (parent: Microsoft.Dotnet.Sdk.Internal

* Bump global.json

* Update dependencies from https://github.com/dotnet/installer build 20220711.1

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-preview.6.22306.4 -> To Version 7.0.100-preview.7.22361.1

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22273.1 -> To Version 7.0.100-1.22354.1 (parent: Microsoft.Dotnet.Sdk.Internal

* Bump global.json

* Update dependencies from https://github.com/dotnet/installer build 20220712.1

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-preview.6.22306.4 -> To Version 7.0.100-preview.7.22362.1

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22273.1 -> To Version 7.0.100-1.22354.1 (parent: Microsoft.Dotnet.Sdk.Internal

* Re-generate global.json

* [registrar] Improve naming of generated P/Invoke wrappers.

C# method names generated by the C# compiler can have all sorts of invalid
characters, so just sanitize this a bit.

* [tests] Adjust InvalidRuntimeIdentifier_Restore to expect failure for Mac Catalyst.

* Update dependencies from https://github.com/dotnet/installer build 20220713.4

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-preview.6.22306.4 -> To Version 7.0.100-rc.1.22363.4

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22273.1 -> To Version 7.0.100-1.22362.1 (parent: Microsoft.Dotnet.Sdk.Internal

* Re-generate global.json

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: GitHub Actions <github-actions@xamarin.com>
2022-07-14 10:14:29 +02:00
Rolf Bjarne Kvinge e468e75b68
[registrar] Improve naming of generated P/Invoke wrappers. (#15480) 2022-07-14 09:20:17 +02:00
Rolf Bjarne Kvinge 999e7235ea Merge remote-tracking branch 'origin/main' into net7.0 2022-07-14 08:50:07 +02:00
Rolf Bjarne Kvinge d17aa016b4
[devops] Fix publishing in the presence of our global.json (second part) (#15487)
We can't use the global.json located in the root of our repo, because makes it
required to use the exact .NET version we're referencing in our
eng/Versions.Details.xml file. So in order to not use it, we set the working
directory to the parent directory of xamarin-macios.

Otherwise this happens:

    Could not execute because the application was not found or a compatible .NET SDK is not installed.
    Possible reasons for this include:
      * You intended to execute a .NET program:
          The application 'build' does not exist.
      * You intended to execute a .NET SDK command:
          A compatible installed .NET SDK for global.json version [6.0.301-rtm.22280.1] from [D:\a\1\s\xamarin-macios\global.json] was not found.
            6.0.201 [C:\hostedtoolcache\windows\dotnet\sdk]
          Install the [6.0.301-rtm.22280.1] .NET SDK or update [D:\a\1\s\xamarin-macios\global.json] with an installed .NET SDK:
    & : The term 'C:\hostedtoolcache\windows\darc\darc' is not recognized as the name of a cmdlet, function, script file,
    or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
    try again.
2022-07-13 20:36:02 +02:00
Rolf Bjarne Kvinge 617d857af8
[devops] Fix publishing in the presence of our global.json (#15481)
We can't use the global.json located in the root of our repo, because makes it
required to use the exact .NET version we're referencing in our
eng/Versions.Details.xml file. So in order to not use it, we set the working
directory to the parent directory of xamarin-macios.

Otherwise this happens:

    Could not execute because the application was not found or a compatible .NET SDK is not installed.
    Possible reasons for this include:
      * You intended to execute a .NET program:
          The application 'build' does not exist.
      * You intended to execute a .NET SDK command:
          A compatible installed .NET SDK for global.json version [6.0.301-rtm.22280.1] from [D:\a\1\s\xamarin-macios\global.json] was not found.
            6.0.201 [C:\hostedtoolcache\windows\dotnet\sdk]
          Install the [6.0.301-rtm.22280.1] .NET SDK or update [D:\a\1\s\xamarin-macios\global.json] with an installed .NET SDK:
2022-07-13 14:12:06 +02:00
Rolf Bjarne Kvinge ac1fa25816
[mlaunch] Download mlaunch from NuGet instead of building from maccore. (#15298)
Download mlaunch from NuGet instead of building from maccore, and copy the
downloaded files into the packages we ship (both legacy Xamarin's pkg and .NET
nupkgs).

Eventually we'll want to reference the mlaunch NuGet from the .NET nupkgs, but
that's a later step.
2022-07-13 11:00:15 +02:00
Rolf Bjarne Kvinge bdfdd19bff
[devops] Simplify validation for cleanup script. (#15470) 2022-07-13 10:43:42 +02:00