Skip to content

Commit a8e8a24

Browse files
committed
chore: update runtime identifiers
- Removed 'linux-arm64' and 'win-arm64' from RuntimeIdentifiers in Perla.fsproj - Simplified runtime list in tools.fsx
1 parent 29ebf16 commit a8e8a24

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

src/Perla/Perla.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</Description>
1212
<PackAsTool>true</PackAsTool>
1313
<ToolCommandName>perla</ToolCommandName>
14-
<RuntimeIdentifiers>linux-x64;linux-arm64;win-x64;win-arm64;osx-x64;osx-arm64;</RuntimeIdentifiers>
14+
<RuntimeIdentifiers>linux-x64;win-x64;osx-x64;osx-arm64;</RuntimeIdentifiers>
1515
</PropertyGroup>
1616
<ItemGroup>
1717
<InternalsVisibleTo Include="$(AssemblyName).Tests" />

tools.fsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@ open System
55
open System.IO
66
open System.IO.Compression
77

8-
let runtimes = [|
9-
"linux-x64"
10-
"linux-arm64"
11-
"osx-x64"
12-
"osx-arm64"
13-
"win-x64"
14-
"win-arm64"
15-
|]
8+
let runtimes = [| "linux-x64"; "osx-x64"; "osx-arm64"; "win-x64" |]
169

1710
let tools = [ "Perla" ]
1811

@@ -40,7 +33,7 @@ let fsSources =
4033
)
4134

4235
let GatherNupkgs() =
43-
Glob.createWithRootDir "dist" "**/*.nupkg" |> Glob.toPaths
36+
Glob.create "./dist/*.nupkg" |> Glob.toPaths
4437

4538
let outDir = Path.GetFullPath("./dist")
4639

@@ -183,8 +176,14 @@ module Steps =
183176

184177
let pushNugets = Step.create "nuget" {
185178
let! apiKey = NugetApiKey
179+
let! ctx = Step.context
180+
let packages = GatherNupkgs() |> Seq.toArray
181+
182+
Console.info $"Pushing {packages.Length} NuGet packages"
183+
|> ctx.Console.WriteLine
186184

187-
for nuget in GatherNupkgs() do
185+
for nuget in packages do
186+
Console.info $"Pushing NuGet package: {nuget}" |> ctx.Console.WriteLine
188187
do! Operations.nugetPush(nuget, apiKey)
189188
}
190189

0 commit comments

Comments
 (0)