-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add deprecation notice to README.md * fix docs link * RNET-1175 Fix potential outgoing message corruption in managed websockets (#3670) * Fix potential outgoing message corruption in managed websockets * Update CHANGELOG.md * Prepare for 12.4.1 (#3672) * Prepare for vNext (#3673) Co-authored-by: fealebenpae <[email protected]> * Use upstream pkl-gha for GitHub Action Workflows (#3677) * Use upstream for pkl workflows Signed-off-by: StefMa <[email protected]> * Remove custom pkl project Signed-off-by: StefMa <[email protected]> * Translate pkl actions --------- Signed-off-by: StefMa <[email protected]> * Update core to 14.13.2, bump max page size to 16kb (#3683) * Update core, bump max page size to 16kb * Use macos-latest * Drop support for UWP arm32 * Fix setup-xcode * Bump platform helpers to .net7 * Use net8 for analytics assembly * .net6 -> .net8 * Fix some tests * Use correct reference assemblies * Update ilspycmd, drop xamarin support * Downgrade Core * Fix logger regex * Update changelog * Remove check title workflow * Prepare for 12.5.0 (#3684) Co-authored-by: nirinchev <[email protected]> * Prepare for vNext (#3685) Co-authored-by: nirinchev <[email protected]> * Merge main into community * Remove accidentally commited files * Set the Unity constant for aot targets * Wrap dynamic tests in conditionals * Revert "Wrap dynamic tests in conditionals" This reverts commit 51a949c. * Clean up solution file --------- Signed-off-by: StefMa <[email protected]> Co-authored-by: Michael O'Brien <[email protected]> Co-authored-by: Yavor Georgiev <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: fealebenpae <[email protected]> Co-authored-by: Stefan M. <[email protected]> Co-authored-by: nirinchev <[email protected]> Co-authored-by: nirinchev <[email protected]>
- Loading branch information
1 parent
5eda840
commit 270174d
Showing
115 changed files
with
421 additions
and
5,145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Get-ChildItem -Path './pkl-workflows' -Filter *.pkl -File -Name | ForEach-Object { | ||
&pkl eval ./pkl-workflows/$_ -o "./workflows/$($_.Replace('pkl', 'yml'))" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module common | ||
|
||
import "../GithubAction/GithubAction.pkl" as gha | ||
import "package://pkg.pkl-lang.org/github.com/stefma/pkl-gha/[email protected]#/GitHubAction.pkl" as gha | ||
import "Lint.pkl" | ||
import "Package.pkl" | ||
import "Test.pkl" as TestJobs | ||
|
@@ -11,7 +11,7 @@ const linuxArchs: List<String> = List("x86_64", "armhf", "aarch64") | |
const applePlatforms: List<String> = List("iOS", "tvOS") | ||
const androidABIs: List<String> = List("armeabi-v7a", "arm64-v8a", "x86", "x86_64") | ||
const windowsArchs: List<String> = List("Win32", "x64", "ARM64") | ||
const uwpArchs: List<String> = List("Win32", "x64", "ARM", "ARM64") | ||
const uwpArchs: List<String> = List("Win32", "x64", "ARM64") | ||
|
||
const appleTargets: List<String> = List("Device", "Simulator") | ||
|
||
|
@@ -23,9 +23,9 @@ local const job_Wrappers: String = "build-wrappers" | |
|
||
const mainBranch: String = "community" | ||
|
||
typealias NetFramework = "net6.0" | "net8.0" | String(startsWith("${{ matrix")) | String(startsWith("net8")) | ||
typealias NetRuntime = "win-x64" | "linux-x64" | "osx-x64" | "osx-arm64" | String(startsWith("${{ matrix")) | ||
typealias SyncDifferentiator = "ios-maui" | "android-maui" | "tvos" | "macos-maui" | "code-coverage" | "uwp" | "net-framework" | String(startsWith("${{ matrix")) | ||
typealias NetFramework = "net6.0"|"net8.0"|String(startsWith("${{ matrix"))|String(startsWith("net8"))|String(startsWith("net9")) | ||
typealias NetRuntime = "win-x64"|"linux-x64"|"osx-x64"|"osx-arm64"|String(startsWith("${{ matrix")) | ||
typealias SyncDifferentiator = "ios-maui"|"android-maui"|"tvos"|"macos-maui"|"code-coverage"|"uwp"|"net-framework"|String(startsWith("${{ matrix")) | ||
|
||
const wrapperBinaryNames: List<String> = | ||
List("macos", "catalyst") | ||
|
@@ -35,7 +35,8 @@ const wrapperBinaryNames: List<String> = | |
+ uwpArchs.map((arch) -> "windows-uwp-\(arch)") | ||
+ applePlatformTargets((platform, target) -> "\(platform)-\(target)") | ||
|
||
const defaultEnv: Mapping<String, String | Boolean> = new { | ||
const defaultEnv: Mapping<String, String|Boolean|Number> = new { | ||
["REALM_DISABLE_ANALYTICS"] = true | ||
["DOTNET_NOLOGO"] = true | ||
} | ||
|
||
|
@@ -48,12 +49,12 @@ const packages: List<String> = nugetPackages + List("Realm.UnityUtils", "Realm.U | |
|
||
const testTimeout: Int = 60 | ||
|
||
const function defaultBuildJobs(netCoreVersions: Listing<NetFramework>): Mapping<String, gha.JobBase> = new { | ||
[job_Wrappers] = new gha.ReusableWorkflowJob { | ||
const function defaultBuildJobs(netCoreVersions: Listing<NetFramework>): Mapping<String, gha.Job> = new { | ||
[job_Wrappers] = new gha.ReusableJob { | ||
uses = "./.github/workflows/wrappers.yml" | ||
name = "Wrappers" | ||
} | ||
[job_Packages] = (Package.nuget("contains(github.head_ref, 'release')")){ | ||
[job_Packages] = (Package.nuget("contains(github.head_ref, 'release')")) { | ||
needs { | ||
job_Wrappers | ||
} | ||
|
@@ -69,12 +70,8 @@ const function defaultBuildJobs(netCoreVersions: Listing<NetFramework>): Mapping | |
["test-net-framework"] = TestJobs.netFramework() | ||
["test-uwp"] = TestJobs.uwp() | ||
["test-net-core"] = TestJobs.netCore(netCoreVersions) | ||
["test-macos-xamarin"] = TestJobs.macOS_Xamarin() | ||
["test-macos-maui"] = TestJobs.macOS_Maui() | ||
["test-ios-xamarin"] = TestJobs.iOS_Xamarin() | ||
["test-ios-maui"] = TestJobs.iOS_Maui() | ||
["test-tvos"] = TestJobs.tvOS() | ||
["test-android-xamarin"] = TestJobs.android_Xamarin() | ||
["test-android-maui"] = TestJobs.android_Maui() | ||
["test-woven-classes"] = TestJobs.wovenClasses() | ||
["test-source-generation"] = TestJobs.sourceGeneration() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
module lint | ||
|
||
import "../GithubAction/GithubAction.pkl" as gha | ||
import "Steps.pkl" | ||
import "package://pkg.pkl-lang.org/github.com/stefma/pkl-gha/[email protected]#/GitHubAction.pkl" as gha | ||
import "Common.pkl" | ||
import "Steps.pkl" | ||
|
||
const actionVerifyTODO = "nirinchev/verify-todo@ffa352ac028b4cdc8bc626471d33aa341b3ab7c9" | ||
|
||
function lint(): gha.Job = new { | ||
name = "Verify TODOs" | ||
`runs-on` = new gha.UbuntuLatest{} | ||
`runs-on` = new gha.UbuntuLatest {} | ||
steps { | ||
Steps.checkoutWithoutMatchers(false) | ||
new gha.Step { | ||
|
@@ -24,7 +24,7 @@ function lint(): gha.Job = new { | |
} | ||
|
||
function verifyNamespaces(): gha.Job = new { | ||
`runs-on` = new gha.UbuntuLatest{} | ||
`runs-on` = new gha.UbuntuLatest {} | ||
name = "Verify Namespaces" | ||
needs { | ||
Common.job_Packages | ||
|
@@ -33,7 +33,7 @@ function verifyNamespaces(): gha.Job = new { | |
Steps.checkoutWithoutMatchers(false) | ||
...Steps.fetchPackages(null) | ||
new { | ||
run = "dotnet tool install ilspycmd -g --version 8.0.0.7345" | ||
run = "dotnet tool install ilspycmd -g --version 9.0.0.7833-preview3" | ||
} | ||
new { | ||
name = "Verify Namespaces" | ||
|
@@ -66,4 +66,4 @@ function verifyNamespaces(): gha.Job = new { | |
shell = "pwsh" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module package | ||
|
||
import "../GithubAction/GithubAction.pkl" as gha | ||
import "package://pkg.pkl-lang.org/github.com/stefma/pkl-gha/[email protected]#/GitHubAction.pkl" as gha | ||
import "Actions.pkl" | ||
import "Common.pkl" | ||
import "Steps.pkl" | ||
import "Actions.pkl" | ||
|
||
const unityPkgName = "io.realm.unity-${{ needs.\(Common.job_Packages).outputs.\(Steps.getVersionOutput) }}.tgz" | ||
|
||
|
@@ -14,7 +14,7 @@ local const buildSuffixOutput = "build_suffix" | |
|
||
function nuget(shouldBuildDocsCondition: String): gha.Job = new { | ||
name = "Package NuGet" | ||
`runs-on` = new gha.WindowsLatest{} | ||
`runs-on` = new gha.WindowsLatest {} | ||
`if` = Common.ifNotCanceledCondition | ||
outputs { | ||
[Steps.getVersionOutput] = Steps.getVersionExpresssion | ||
|
@@ -36,15 +36,15 @@ function nuget(shouldBuildDocsCondition: String): gha.Job = new { | |
Steps.readVersionFromPackage() | ||
for (pkgName in Common.packages) { | ||
let (finalPkgName = "\(pkgName).\(Steps.getVersionExpresssion)") | ||
Steps.uploadArtifacts(finalPkgName, "Realm/packages/\(finalPkgName).*nupkg") | ||
Steps.uploadArtifacts(finalPkgName, "Realm/packages/\(finalPkgName).*nupkg") | ||
} | ||
Steps.uploadArtifacts("ExtractedChangelog", "Realm/Realm/ExtractedChangelog.md") | ||
...buildDocs(shouldBuildDocsCondition) | ||
} | ||
} | ||
function unity(): gha.Job = new { | ||
name = "Package Unity" | ||
`runs-on` = new gha.WindowsLatest{} | ||
`runs-on` = new gha.WindowsLatest {} | ||
`timeout-minutes` = 30 | ||
`if` = Common.ifNotCanceledCondition | ||
needs { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import "../GithubAction/GithubAction.pkl" as gha | ||
import "Common.pkl" | ||
import "package://pkg.pkl-lang.org/github.com/stefma/pkl-gha/[email protected]#/GitHubAction.pkl" as gha | ||
import "Actions.pkl" | ||
import "Common.pkl" | ||
|
||
const getVersionStepName = "get-version" | ||
const getVersionOutput = "package_version" | ||
|
||
const getVersionExpresssion = "${{ steps.\(getVersionStepName).outputs.\(getVersionOutput) }}" | ||
|
||
const function checkout(submodules: (Boolean | "recursive")): Listing<gha.Step> = new { | ||
const function checkout(submodules: (Boolean|"recursive")): Listing<gha.Step> = new { | ||
checkoutWithoutMatchers(submodules) | ||
registerProblemMatchers() | ||
} | ||
|
||
const function checkoutWithoutMatchers(submodules: (Boolean | "recursive")): gha.Step = new { | ||
const function checkoutWithoutMatchers(submodules: (Boolean|"recursive")): gha.Step = new { | ||
name = "Checkout Code" | ||
uses = Actions.checkout | ||
with { | ||
|
@@ -136,7 +136,7 @@ const function setupAndroid(): Listing<gha.Step> = new { | |
} | ||
} | ||
|
||
const function configureAWSCredentials(accessKey: String, secretKey: String, region: "us-east-1" | "us-west-2" | "us-east-2"): gha.Step = new { | ||
const function configureAWSCredentials(accessKey: String, secretKey: String, region: "us-east-1"|"us-west-2"|"us-east-2"): gha.Step = new { | ||
name = "Configure AWS Credentials" | ||
uses = Actions.awsConfigureCredentials | ||
with { | ||
|
@@ -157,7 +157,7 @@ const function readVersionFromPackage(): gha.Step = new { | |
shell = "bash" | ||
} | ||
|
||
const function uploadToNPM(tag: "latest" | "alpha"): Listing<gha.Step> = new { | ||
const function uploadToNPM(tag: "latest"|"alpha"): Listing<gha.Step> = new { | ||
local packageName = "io.realm.unity-\(getVersionExpresssion).tgz" | ||
|
||
new { | ||
|
@@ -186,18 +186,18 @@ const function uploadPackagesToSleet(versionExpression: String, expectShortPath: | |
configureAWSCredentials("NUGET_S3_ACCESS_KEY", "NUGET_S3_SECRET_KEY", "us-east-1") | ||
for (package in Common.nugetPackages) { | ||
let (packageWithVersion = "\(package).\(versionExpression)") | ||
let (packagePath = "\(if (expectShortPath) "" else "\(packageWithVersion)/")\(packageWithVersion).nupkg") | ||
new { | ||
name = "NuGet Publish \(packageWithVersion)" | ||
run = "sleet push ${{ github.workspace }}/Realm/packages/\(packagePath) --config ${{ github.workspace }}/.github/sleet.json --source NugetSource" | ||
} | ||
let (packagePath = "\(if (expectShortPath) "" else "\(packageWithVersion)/")\(packageWithVersion).nupkg") | ||
new { | ||
name = "NuGet Publish \(packageWithVersion)" | ||
run = "sleet push ${{ github.workspace }}/Realm/packages/\(packagePath) --config ${{ github.workspace }}/.github/sleet.json --source NugetSource" | ||
} | ||
} | ||
} | ||
|
||
class MSBuildConfig { | ||
projects: Listing<String> | ||
target: String? | ||
properties: Mapping<String, String> = new{} | ||
properties: Mapping<String, String> = new {} | ||
standaloneExe: Boolean = false | ||
|
||
function getTargetForInvocation(): String = if (target != null) " -t:\(target)" else "" | ||
|
@@ -280,9 +280,9 @@ const function cleanupWorkspace(): gha.Step = new { | |
class SimulatorConfig { | ||
appPath: String | ||
bundleId: String | ||
iphoneToSimulate: "Apple-TV-1080p" | "iPhone-8" | "iPhone-15" | ||
iphoneToSimulate: "Apple-TV-1080p"|"iPhone-8"|"iPhone-15" | ||
arguments: String | ||
os: "tvOS" | "iOS" | ||
os: "tvOS"|"iOS" | ||
} | ||
|
||
class DeviceFarmConfig { | ||
|
Oops, something went wrong.