27
27
28
28
steps :
29
29
- name : Checkout
30
- uses : actions/checkout@v3
30
+ uses : actions/checkout@v4
31
31
with :
32
32
submodules : true
33
33
- name : Build
76
76
shell : bash
77
77
78
78
- name : Upload Library
79
- uses : actions/upload-artifact@v3
79
+ uses : actions/upload-artifact@v4
80
80
with :
81
81
name : ${{steps.build.outputs.platform}}
82
82
path : ${{steps.build.outputs.path}}
@@ -86,28 +86,25 @@ jobs:
86
86
runs-on : windows-latest
87
87
steps :
88
88
- name : Checkout
89
- uses : actions/checkout@v1
89
+ uses : actions/checkout@v4
90
+ with :
91
+ fetch-depth : 0
90
92
- name : Setup
91
93
run : |
92
- mkdir -p build/runtimes/linux-x64
93
- mkdir -p build/runtimes/osx
94
- mkdir -p build/runtimes/win-x64
94
+ mkdir -p tmp
95
+ mkdir -p build/runtimes/linux-x64/native
96
+ mkdir -p build/runtimes/osx/native
97
+ mkdir -p build/runtimes/win-x64/native
95
98
choco install nuget.commandline
96
- - name : Download linux-x64
97
- uses : actions/download-artifact@v1
98
- with :
99
- name : ' linux-x64'
100
- path : build/runtimes/linux-x64/native
101
- - name : Download osx
102
- uses : actions/download-artifact@v1
99
+ - name : Download Artifacts
100
+ uses : actions/download-artifact@v4
103
101
with :
104
- name : ' osx'
105
- path : build/runtimes/osx/native
106
- - name : Download win-x64
107
- uses : actions/download-artifact@v1
108
- with :
109
- name : ' win-x64'
110
- path : build/runtimes/win-x64/native
102
+ path : tmp
103
+ - name : Set up Artifacts
104
+ run : |
105
+ mv tmp/linux-x64/* build/runtimes/linux-x64/native
106
+ mv tmp/osx/* build/runtimes/osx/native
107
+ mv tmp/win-x64/* build/runtimes/win-x64/native
111
108
- name : Calculate Version
112
109
id : version
113
110
run : |
@@ -139,7 +136,7 @@ jobs:
139
136
nuget pack -version ${{steps.version.outputs.version}} -basepath . ..\dogged.native.binaries.nuspec
140
137
Write-Host "package=dogged.native.binaries.${{steps.version.outputs.version}}.nupkg" >> $Env:GITHUB_OUTPUT
141
138
- name : Upload Package
142
- uses : actions/upload-artifact@v3
139
+ uses : actions/upload-artifact@v4
143
140
with :
144
141
name : nuget
145
142
path : build/${{steps.build.outputs.package}}/Dogged.Native.Binaries.${{steps.version.outputs.version}}.nupkg
0 commit comments