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

3171 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 86e898ea9f Merge main into net8.0. 2022-11-14 09:12:23 +01:00
Rolf Bjarne Kvinge 3b839e1551
[autoformat] Add msbuild tests. (#16717) 2022-11-14 08:58:59 +01:00
Rolf Bjarne Kvinge 6905e0b176
[apidiff] Fix comparison vs previous commit for .NET. (#16681)
When comparing with the previous commit, we can't use the TFM for the
stable version of .NET, since it may not be the same TFM used in the
previous commit.

Instead fetch the actual TFM from the checkout, and use that during the
api comparison.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2022-11-14 08:44:08 +01:00
Rolf Bjarne Kvinge a5a7f23494
[apidiff] Fix typo when loading AUTH_TOKEN_GITHUB_COM from a file. (#16722) 2022-11-14 08:06:12 +01:00
Manuel de la Pena 80c0e76218
[DevOps] Checkout the yaml repos to fix an issue with the working dir. (#16715)
Azure pipelines has this terrible design in which the path of the
checkout is different depending if you checkout a single repo or
several.

In this case, we have no issues on macios because we do know we have not
been checkout with anyother repo in the upload step, that is not the
case when working on the unified pipeline. Rather than adding some
complicated logic, we are going to be checking out the yaml templates so
that we have the same working directory structure.
2022-11-11 14:02:06 -05:00
Rolf Bjarne Kvinge 9fb6a4b309
[devops] Augment the install-workloads.sh script to make it easier to run locally. (#16698)
It's often desired to run the install-workloads.sh script locally, in order to
diagnose problems with it.

So improve it a bit by:

* Adding a few comments explaining things.
* Don't assume we're in the correct directory.
* Figure out BUILD_SOURCESDIRECTORY if it's not already set.
* Validate a bit and show more helpful errors.

Hopefully future me will be grateful!
2022-11-11 13:42:35 +01:00
Rolf Bjarne Kvinge 9de1092c0a Merge main into net8.0. 2022-11-11 09:49:37 +01:00
Rolf Bjarne Kvinge c4c0d35a7f
[autoformat] Add the CoreWlan, EventKit, EventKitUI, ExternalAccessory, FileProvider, FinderSync and Foundation frameworks. (#16714)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-11-11 08:21:20 +01:00
Rolf Bjarne Kvinge ca42f2644d
[autoformat] Add the CoreServices, CoreTelephony, CoreText and CoreVideo frameworks. (#16700) 2022-11-10 18:00:29 +01:00
Rolf Bjarne Kvinge 6f45caa84d
[autoformat] Add monotouch-test (#16701) 2022-11-10 17:59:26 +01:00
Manuel de la Pena be0c787503
[DevOps] Allow to pass the alias of the xamarin repo and its commit to the checkout. (#16657)
This will allow an external pipeline to checkout the repo and use our
templates to build.

This is a partial fix for
https://github.com/xamarin/sdk-insertions/issues/41
2022-11-10 08:12:42 -05:00
Manuel de la Pena d7833fcf8d
[DevOps] Allow to pass a prefix to be used in the display names. (#16686)
This will allow to know the owner of the stage.
2022-11-10 08:12:11 -05:00
Manuel de la Pena e51827ddb8
[DevOps] Use the project URI to calculate the project. (#16680)
The template can be run by a diff pipeline, that means that the project
and the commit wont point to xmarin/xamarin-macios. We use the URI to
calculate the org and the repo to be passed to the pwh objects.

Fixes https://github.com/xamarin/sdk-insertions/issues/43
2022-11-10 08:11:22 -05:00
Rolf Bjarne Kvinge b8362b1079
[runtime] Validate that the static registrar code being registered was built using the same runtime. (#16652)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-11-10 10:45:20 +01:00
Rolf Bjarne Kvinge d65b74a936
[autoformat] Add the CoreHaptics, CoreImage, CoreLocation, CoreML, CoreMedia, CoreMidi and CoreMotion frameworks. (#16689)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-11-10 10:29:40 +01:00
Rolf Bjarne Kvinge 1296e35205
[registrar] Deduplicate the code to compute the initialization method name for the generated static registrar code. (#16649)
This is a step towards having a registration map (and initialization method) for each assembly.

Ref: https://github.com/xamarin/xamarin-macios/issues/11309

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-11-10 08:56:37 +01:00
Rolf Bjarne Kvinge 13af8504b6 Merge remote-tracking branch 'origin/main' into bump-main-in-net8.0-2022-11-09 2022-11-10 08:19:43 +01:00
Manuel de la Pena 4da68c36ba
[DevOps] Update the way we pass the token to the provisionator task. (#16691) 2022-11-09 18:57:55 -05:00
Rolf Bjarne Kvinge 5eda14f782
[devops] Reset dependencies before adding provisioning profiles. (#16651)
This makes sure we're at the right maccore hash before adding provisioning
profile (in particular we want to be at the hash where the PR branch is at,
not the tip of main (which is the default)).
2022-11-09 19:23:52 +01:00
Rolf Bjarne Kvinge a60346ab47 Merge main into net8.0. 2022-11-09 19:20:14 +01:00
Manuel de la Pena 527de6d0ab
[DevOps] Pass the yaml resource name since the default is not longer valid. (#16676) 2022-11-09 11:56:47 -05:00
Manuel de la Pena bbecd22e33
[DevOps] Do not use the output var from the azure step for the urls. (#16653) 2022-11-09 08:54:24 -05:00
Manuel de la Pena ee778c0f64
[DevOps] Fix missed variables format. (#16634)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-11-09 08:52:14 -05:00
Rolf Bjarne Kvinge 5f1d270cb3
[autoformat] Add the CoreGraphics framework. (#16644) 2022-11-09 14:10:06 +01:00
Rolf Bjarne Kvinge 807acdce2f Merge remote-tracking branch 'origin/main' into bump-main-in-net8.0-2022-11-07 2022-11-09 07:56:51 +01:00
Alex Soto ba77d29f4e
[CI] Go back to the stable bots (#16661) 2022-11-09 07:42:12 +01:00
Manuel de la Pena 968ebbf4d3
[DevOps] Fix value of yamlResourceName to use the new resource name. (#16658) 2022-11-08 13:07:13 -05:00
Manuel de la Pena e1ecf77211 [Devops] Fix the tempalte name. There was a merge race. 2022-11-08 12:04:03 -05:00
Manuel de la Pena 6aab509be5
[DevOps] Use the checkout template for the unified pipeline to work. (#16626)
Move to use a template to perform the checkout. The new template allows
to perform the checkout using a resource alias, which later can be used
to use the template outside this repo.

Partial fix for https://github.com/xamarin/sdk-insertions/issues/41

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-11-08 11:58:30 -05:00
Rolf Bjarne Kvinge bc95efb0ae
[autoformat] Add xtro. (#16622) 2022-11-08 17:44:13 +01:00
Manuel de la Pena 1cb4266ffa
[DevOps] Update statuses urls for the new storage. (#16595) 2022-11-08 11:28:13 -05:00
Rui Marinho 721661e6b4
[DevOps] Rename the yaml-templates resources to match the MAUI repo. (#16618)
In an attempt to unify the build of all the SDKs we need to be rename
all shared resources between the CIs to all use the same name.

This commit renames the resource to use the pattern used by MAUI.

Partial fix for https://github.com/xamarin/sdk-insertions/issues/39
2022-11-08 14:07:38 +00:00
Rolf Bjarne Kvinge b8c5f46d84
[dotnet/tools] Don't disable compact unwind info. Fixes #16546. (#16623)
Don't disable compact unwind info in the native linker, it may break C++
exception handling.

We originally disabled compact unwind info to fix a warning from the native
linker, this will have to be solved another way (in any case extra build
warnings is preferrable compared to an app crashing at runtime due to broken
C++ exception handling).

This partially reverts c05e774612.

Fixes https://github.com/xamarin/xamarin-macios/issues/16546.
2022-11-08 12:16:11 +01:00
Rolf Bjarne Kvinge 5738468652
[autoformat] Add the CoreFoundation framework. (#16619) 2022-11-08 07:40:22 +01:00
Manuel de la Pena 805b99aec6 [DevOps] Rename the yaml-templates resources to match the MAUI repo.
In an attempt to unify the build of all the SDKs we need to be rename all shared resources between the CIs to all use the same name.

This commit renames the resource to use the pattern used by MAUI.

Partial fix for xamarin/sdk-insertions#39
2022-11-07 19:37:27 -05:00
Rolf Bjarne Kvinge 78229568e7
[autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
Manuel de la Pena 92fe604feb
[DevOps] Allow to set the azure storage to be used via variables. (#16602)
Be ready for possible container changes:

"By failing to prepare, you are preparing to fail."
2022-11-07 09:16:22 -05:00
Rolf Bjarne Kvinge a066343f6c Merge main into net8.0. 2022-11-07 09:14:02 +01:00
Manuel de la Pena 2f9e064dbb
[DevOps] Update the version of the provisionator template to deal with the new storage. (#16594) 2022-11-06 18:14:35 -05:00
Rolf Bjarne Kvinge c20dd063c1 Revert "[devops] Use dnceng-dotnet7 for now as the publish feed credential."
This reverts commit efb9319961.
2022-11-04 17:59:28 +01:00
Rolf Bjarne Kvinge d017c532df
[autoformat] Add the Contacts, CoreAnimation, CoreBluetooth and CoreData frameworks. (#16490) 2022-11-04 15:50:14 +01:00
Rolf Bjarne Kvinge efb9319961 [devops] Use dnceng-dotnet7 for now as the publish feed credential. 2022-11-04 15:49:18 +01:00
Rolf Bjarne Kvinge eaa5805b7a
[devops] Only publish enabled platforms to maestro. (#16579)
* Read the enabled platforms from the build configuration.
* Iterate over each platform, and only push the enabled ones to maestro.
* Iterate over each platform again, and only add the enabled ones to the default
  channel (for the current branch).
2022-11-04 15:40:05 +01:00
Rolf Bjarne Kvinge 89b75b8ce1 Bump to net8.0 2022-11-04 09:41:56 +01:00
Rolf Bjarne Kvinge ceaa0171da
Merge net7.0-xcode14.1 into main. (#16555)
This merges .NET 7 + Xcode 14.1 support into main.
2022-11-04 08:36:25 +01:00
Rolf Bjarne Kvinge 2a6023d3a3
[devops] Move logic to store and load the build configuration to disk into shareable PowerShell functions. (#16552)
* This makes it much easier to maintain the code, since it's possible to run it locally.
* Add tests!
* Add a DOTNET_PLATFORMS variable to the build configuration to list all the
  enabled .NET platforms.
* Add INCLUDE_DOTNET_<platform> variables to the build configuration for each
  enabled .NET platform. These new variables will be used in a future pull request.
2022-11-03 22:24:50 +01:00
Rolf Bjarne Kvinge 846c538cd3
[devops] Make publishing binlogs nonfatal. (#16556)
We don't need the binlogs in order to produce a successful build (only to
diagnose a failing build).
2022-11-03 21:22:39 +01:00
GitHub Actions Autoformatter bdb98ce4d8 Auto-format source code 2022-11-03 08:56:13 +00:00
Rolf Bjarne Kvinge 581d6b4218 Merge remote-tracking branch 'origin/main' into main-net7.0-xcode14.1 2022-11-03 09:34:32 +01:00
Rolf Bjarne Kvinge 1171587edc
[apidiff] Change to use dl.internalx.com with a GitHub PAT for API reference downloads. (#16548)
Update the download of API references to:

* Use `dl.internalx.com` links instead of `bosstoragemirror.blob.core.windows.net`
  links (the relative path stays the same).
* Require a GitHub PAT in order to download from dl.internalx.com. This PAT
  can either be provided through a file (recommended for local use) or through
  the environment.
* Document these changes.
2022-11-03 09:07:22 +01:00