File tree Expand file tree Collapse file tree 4 files changed +43
-44
lines changed Expand file tree Collapse file tree 4 files changed +43
-44
lines changed Original file line number Diff line number Diff line change @@ -10,34 +10,44 @@ jobs:
10
10
build :
11
11
12
12
runs-on : ubuntu-latest
13
+
13
14
steps :
14
15
- uses : actions/checkout@v4
15
16
with :
16
17
fetch-depth : 0
17
18
filter : tree:0
18
-
19
19
- name : Install .NET
20
20
uses : actions/setup-dotnet@v4
21
21
with :
22
- dotnet-version : ' 9.0.x'
23
-
24
- - name : pack nugets
25
- run : dotnet build -t:Pack OpenHarmony.NET.Compiler.Pack.nuproj -o ./packages -p:Version=0.0.0-alpha.${{github.run_number}} --property PackageCompressionLevel=Optimal
22
+ dotnet-version : ' 8.0.x'
23
+ - uses : actions/checkout@master
24
+ - uses : nuget/setup-nuget@v2
25
+ with :
26
+ nuget-version : ' 5.x'
27
+ - name : Install Mono
28
+ run : |
29
+ sudo apt update & sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common -y
30
+ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
31
+ sudo apt-add-repository 'deb https://download.mono-project.com/repo/ubuntu stable-bionic main'
32
+ sudo apt install mono-complete
33
+ mono --version
34
+ - name : Pack Blazonia nugets
35
+ run : nuget pack ./OpenHarmony.NET.Compiler.Pack.nuspec -OutputDirectory ./packages -Version 0.0.0-alpha.${{github.run_number}}
26
36
- name : Upload a Build Artifact
27
37
uses : actions/upload-artifact@v4
28
38
with :
29
39
name : packages
30
40
path : packages
31
41
32
42
publish-to-nuget :
33
- needs : build
34
- runs-on : ubuntu-latest
35
- if : github.event_name == 'push'
36
- steps :
37
- - uses : actions/download-artifact@v4
38
- with :
39
- name : packages
40
- path : packages
41
- - name : Push to NuGet
42
- run : |
43
- dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
43
+ needs : build
44
+ runs-on : ubuntu-latest
45
+ if : github.event_name == 'push'
46
+ steps :
47
+ - uses : actions/download-artifact@v4
48
+ with :
49
+ name : packages
50
+ path : packages
51
+ - name : Push to NuGet
52
+ run : |
53
+ dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <package xmlns =" http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd" >
3
+ <metadata >
4
+ <id >OpenHarmony.NET.Compiler.Pack</id >
5
+ <version >1.0.0</version >
6
+ <authors >OpenHarmony.NET</authors >
7
+ <projectUrl >https://github.com/OpenHarmony.NET/OpenHarmony.NET.Compiler.Pack</projectUrl >
8
+ <description >MSBuild targets to aid in crosscompiling Native AOT publishing.</description >
9
+ <dependencies >
10
+ <group targetFramework =" net9.0" >
11
+ <dependency id =" OpenHarmony.NET.PublishAotCross" version =" 0.0.0-alpha.2" />
12
+ <dependency id =" OpenHarmony.NET.Runtime" version =" 0.0.0-alpha.19" />
13
+ <dependency id =" PublishAotCross.Compiler" version =" 0.0.0-alpha.27" />
14
+ </group >
15
+ </dependencies >
16
+ </metadata >
17
+ </package >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments