File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 17
17
strategy :
18
18
fail-fast : false
19
19
matrix :
20
- os : [ubuntu-latest , windows-latest, macOS-13]
20
+ os : [ubuntu-22.04 , windows-latest, macOS-13]
21
21
runs-on : ${{ matrix.os }}
22
22
23
23
steps :
34
34
run : ./build.sh
35
35
shell : bash
36
36
- name : Save nuget package as artifact
37
+ if : matrix.os == 'windows-latest'
37
38
uses : actions/upload-artifact@v4
38
39
with :
39
40
name : nuget-package
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ let gitName = "FSharpx.Extras"
53
53
// The url for the raw files hosted
54
54
let gitRaw = Environment.environVarOrDefault " gitRaw" " https://raw.githubusercontent.com/fsprojects"
55
55
56
+ let outputDir = __ SOURCE_ DIRECTORY__ @@ " ../bin"
57
+
56
58
// --------------------------------------------------------------------------------------
57
59
// END TODO: The rest of the file includes standard build steps
58
60
// --------------------------------------------------------------------------------------
@@ -102,7 +104,7 @@ let initTargets () =
102
104
]
103
105
|> Seq.iter ( DotNet.publish ( fun p ->
104
106
{ p with
105
- OutputPath= Some(__ SOURCE _ DIRECTORY __ @@ " bin " )
107
+ OutputPath= Some outputDir
106
108
Framework= Some" netstandard2.0"
107
109
108
110
}))
@@ -126,12 +128,12 @@ let initTargets () =
126
128
Target.create " NuGet" ( fun _ ->
127
129
solutionFile
128
130
|> DotNet.pack ( fun p ->
129
- { p with OutputPath= Some(__ SOURCE _ DIRECTORY __ @@ " bin " ) })
131
+ { p with OutputPath= Some outputDir })
130
132
)
131
133
132
134
Target.create " PublishNuget" ( fun _ ->
133
135
Paket.push( fun p ->
134
- { p with WorkingDir=__ SOURCE _ DIRECTORY __ @@ " bin " })
136
+ { p with WorkingDir= outputDir })
135
137
)
136
138
137
139
You can’t perform that action at this time.
0 commit comments