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

14364 Коммитов

Автор SHA1 Сообщение Дата
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 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
Rolf Bjarne Kvinge 8e92e9e5c5
[tests] Ignore tests that require platforms not included in the current build. (#16000) 2022-09-22 07:33:42 +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 a3b4555ce9
[dotnet] Bump API references to the latest 6.0.4xx (454) release. (#16055) 2022-09-22 07:17:12 +02:00
Rolf Bjarne Kvinge 978bc5d8c8
[actions] Get the head repository using the correct syntax. (#16064)
Get the head repository using the correct syntax when trying to publish
autoformatted changes. This action is a 'workflow_run' action, and not a
'pull_request' action, and as such we must look in the 'workflow_run' object
for the data we need.

This will hopefully make the action able to publish results back to a fork.
2022-09-22 07:16:21 +02:00
VS MobileTools Engineering Service 2 d8fb2672b0
[dotnet] Fix vs-workload.props generation when only some platforms are included in the build. (#16067)
Backport of #16030 with some additional changes.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-09-22 07:15:43 +02:00
Rolf Bjarne Kvinge 421dad0fed
[tests] Don't package/execute legacy mac tests if legacy hasn't been enabled. (#16051) 2022-09-22 07:13:24 +02:00
Haritha Mohan a9c8efa893
[UIKit] Add Constructor for UIHoverGestureRecognizer (#15837)
Fixes #15335

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-09-21 12:54:10 -07: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 b0aa5d0917
Merge main into xcode14.1. (#16036) 2022-09-21 20:39:52 +02:00
Rolf Bjarne Kvinge 231f66034d
[devops] We don't need VSMac installed anymore. (#15998) 2022-09-21 20:38:57 +02:00
Rolf Bjarne Kvinge 62fe97da11
[actions] Second try at autoformatting code (#16014)
It turns out that part of the logic has to exist in `main`, it won't
execute from a pull request.

This means it might take a while to get the logic right... so I made it
work in a personal repo first. This is the resulting code, hopefully it
works here too (but there's no way to know for sure before merging the
PR 😞
2022-09-21 20:30:48 +02:00
Rolf Bjarne Kvinge 6e49a6748a
[xharness] Find a different mlaunch if legacy Xamarin is disabled. (#15996) 2022-09-21 14:27:10 +02:00
dependabot[bot] ee1324ebd6
Bump actions/upload-artifact from 2 to 3 (#16020)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-21 14:25:00 +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 a2f52c77da
[tests] Ignore msbuild tests that require legacy Xamarin when legacy Xamarin is not enabled. (#16019) 2022-09-21 12:13:59 +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
Steve Hawley ea3f7d28dc
[.NET] added cecil tests for generic pinvokes and generic delegates. Fix for #11771 (#15974) 2022-09-20 10:23:53 -04:00
Rolf Bjarne Kvinge e92309e684
Xcode 14.1 beta 1 requires macOS 12.5. (#15999) 2022-09-20 13:59:21 +02:00
Rolf Bjarne Kvinge 4dcfaa3d05 Merge main into xcode14.1. 2022-09-20 13:57:49 +02:00
dotnet-maestro[bot] 249f470e57
[main] Update dependencies from dotnet/runtime (#15886)
This pull request updates the following dependencies

## From https://github.com/dotnet/runtime
- **Subscription**: 0f76eea3-d4b0-4229-e732-08d9ecb01c9c
- **Build**: 20220916.13
- **Date Produced**: September 17, 2022 2:53:53 AM UTC
- **Commit**: cdf48abd370f148a537960141f73769e678660e7
- **Branch**: refs/heads/release/6.0

- **Updates**:
  - **Microsoft.NETCore.App.Ref**: [from 6.0.9 to 6.0.10][15]
- **Microsoft.NET.Workload.Emscripten.Manifest-6.0.100**: [from 6.0.9 to
6.0.10][16]

[15]: 531f715...cdf48ab
[16]: 3f6c45a...c3fc739

## Coherency Updates

The following updates ensure that dependencies with a
*CoherentParentDependency*
attribute were produced in a build used as input to the parent
dependency's build.
See [Dependency Description
Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
- **Microsoft.NET.Workload.Emscripten.Manifest-6.0.100**: from 6.0.9 to
6.0.10 (parent: Microsoft.NETCore.App.Ref)

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-09-20 13:44:06 +02:00
Rolf Bjarne Kvinge 003aa051f3
Merge main into xcode14.1. (#15994) 2022-09-20 11:22:38 +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 3fac95049f Merge remote-tracking branch 'origin/xcode14.1' into bump-main-in-xcode14.1-2022-09-16 2022-09-19 14:11:53 +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 3a8014f57c
[CoreMedia] Don't use 'bool' in an [UnmanagedCallersOnly] method. (#15986)
'bool' isn't a blittable type, so it can't be used in an
[UnmanagedCallersOnly] method.

FWIW it's a bug in the C# compiler to not complain about this:
https://github.com/dotnet/roslyn/issues/64086.

Fixes this crash in the AOT compiler:

> * Assertion at /Users/runner/work/1/s/src/mono/mono/mini/aot-compiler.c:5142, condition `is_ok (error)' not met, function:add_wrappers, method CoreMedia.CMBufferQueue:GetDataReady (intptr,intptr) with UnmanagedCallersOnlyAttribute has non-blittable parameters or return type assembly:<unknown assembly> type:<unknown type> member:(null)

Also exclude some unused delegates from .NET code.
2022-09-19 14:07:37 +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 a020f09979
[tests] Update the cecil tests to run on .NET assemblies. (#15969)
And not legacy assemblies if the legacy build is disabled.
2022-09-19 11:52:23 +02:00
Rolf Bjarne Kvinge 9e04da9006
[xharness] Fix typo in method name. (#15968) 2022-09-19 11:51:05 +02:00
Rolf Bjarne Kvinge 7908a319e6
[actions] Add GitHub action to automatically format code. (#15935)
Implement a GitHub action to automatically format our source code.

This is implemented in two steps:

1. A restricted action is used to check if the code has any formatting issues, and if so, creates a patch to fix the code.
2. Another action is used to commit and push the patch (and add a comment to the PR notifying the submitter about the problems found).

This is because the first action will call 'dotnet format', which might be insecure in that it can execute code from the repository. This is not safe in a context that is allowed to push commits (because there are secrets in the environment) - so anyone could create a PR that would be executed as a part of 'dotnet format' and then look for our secrets and make them public. The restricted action's environment does not have any secrets, and it's thus safe to execute random code.

The second action will only execute if the corresponding file is in main, so this PR need to be merged before this can be fully implemented, and as such I've made the autoformatting opt-in (by adding the `actions-enable-autoformat` label). Once everything is confirmed to work properly, it will become opt-out instead.

Also, for now only a very simple project is autoformatted (xibuild.csproj), but the
idea is to fix source code incrementally, and add to the list of projects/code
we autoformat.
2022-09-19 11:48:10 +02:00
dotnet-maestro[bot] eab2bca993
[main] Update dependencies from dotnet/installer (#15424)
This pull request updates the following dependencies

## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
  - **Microsoft.AspNetCore.App.Ref**: from 6.0.5 to 6.0.9 (parent: Microsoft.Dotnet.Sdk.Internal)

## From https://github.com/dotnet/installer
- **Subscription**: be6e1947-9e64-4217-c50e-08da52a3899f
- **Build**: 20220915.1
- **Date Produced**: September 15, 2022 7:51:35 AM UTC
- **Commit**: 1c38151cabb5771a1503aff6e5cecb435be4c69c
- **Branch**: refs/heads/release/6.0.4xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 6.0.301-rtm.22280.1 to 6.0.402-servicing.22465.1][147]
  - **Microsoft.AspNetCore.App.Ref**: [from 6.0.5 to 6.0.9][148]

[147]: 283e9cf...1c38151
[148]: https://dev.azure.com/dnceng/internal/_git/dotnet-aspnetcore/branches?baseVersion=GCe5f183b&targetVersion=GC3fe12b9&_a=files

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-09-19 11:38:44 +02:00
Rolf Bjarne Kvinge 8a1cb74f9f
Make it easy to figure out which versions we're building. (#15976)
Just do `make show-versions`:

    $ make show-versions
    Building:
        The legacy package(s):
            Xamarin.iOS 15.13.0.132
            Xamarin.Mac 8.13.0.132
        The .NET NuGet(s):
            Microsoft.iOS 15.4.436-ci.show-versions+sha.405ff7c275
            Microsoft.tvOS 15.4.436-ci.show-versions+sha.405ff7c275
            Microsoft.MacCatalyst 15.4.436-ci.show-versions+sha.405ff7c275
            Microsoft.macOS 12.3.436-ci.show-versions+sha.405ff7c275
2022-09-16 18:42:57 +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 cf4d1001ca
[xtro] Fix minor issue. (#15972) 2022-09-16 18:41:58 +02:00
Rolf Bjarne Kvinge 41d71ff313
[build] Fix a c&p mistake in the code to compute the prerelease identifier. (#15970) 2022-09-16 18:40:25 +02:00
Rolf Bjarne Kvinge f9c5070c0e
[tests] Remove unused/dead code. (#15967) 2022-09-16 18:37:55 +02:00
Rolf Bjarne Kvinge 4643e42b7d
[tests] Introspection does not use simlauncher64-sgen.framework in .NET. (#15966) 2022-09-16 18:37:34 +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 57ee60106b
[tests] We do not need qa-dependencies.zip anymore. (#15964)
This was used in the old Xamarin days.
2022-09-16 18:36:51 +02:00
Rolf Bjarne Kvinge 4215eae4a3 Merge main into xcode14.1. 2022-09-16 18:35:48 +02:00
Rolf Bjarne Kvinge e5c58007ba
Merge main into xcode14.1. (#15959) 2022-09-16 18:30:18 +02:00
Chris Hamons efa2935a9d
[foundation] Add lowPowerModeEnabled to macOS (#15940)
- Fixes https://github.com/xamarin/xamarin-macios/issues/15932
2022-09-16 10:37:17 -05:00
Emanuel Fernandez Dell'Oca 4b49ddda8f
[msbuild] Hot Restart fixes (#15979)
Adds missing css files needed on Maui Blazor apps and avoids copying unnecessary files into the bundle (overdue task since the .NET migration).

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-09-16 17:31:04 +02:00
Rolf Bjarne Kvinge fbb39bc2cf
[dotnet] Fix markdown syntax in BundleContents.md (#15962) 2022-09-15 15:41:25 +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