Skip to content

Commit 4a2eb43

Browse files
authored
Update openharmony-build.yml
1 parent c029042 commit 4a2eb43

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/openharmony-build.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@ jobs:
1818

1919
- name: Set up Docker
2020
uses: docker/setup-buildx-action@v2
21-
21+
- name: Install Mono
22+
run: |
23+
sudo apt update & sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common -y
24+
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
25+
sudo apt-add-repository 'deb https://download.mono-project.com/repo/ubuntu stable-bionic main'
26+
sudo apt install mono-complete
27+
mono --version
28+
29+
- name: Set up nuget
30+
- uses: nuget/setup-nuget@v2
31+
2232
- name: Update Submodule
2333
run: |
2434
git submodule update --init --recursive
@@ -29,6 +39,7 @@ jobs:
2939
chmod +x ./build-openharmony-x64.sh
3040
./build-openharmony-x64.sh
3141
42+
3243
- name: build for arm64
3344
working-directory: ${{ github.workspace }}/scripts
3445
run: |
@@ -39,6 +50,7 @@ jobs:
3950
working-directory: ${{ github.workspace }}/package
4051
run: |
4152
nuget pack ./OpenHarmony.NET.Runtime.nuspec -OutputDirectory ../output -Version 0.0.0-alpha.${{github.run_number}}
53+
4254
4355
publish-to-nuget:
4456
needs: build
@@ -49,14 +61,6 @@ jobs:
4961
with:
5062
name: packages
5163
path: output
52-
- uses: nuget/setup-nuget@v2
53-
- name: Install Mono
54-
run: |
55-
sudo apt update & sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common -y
56-
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
57-
sudo apt-add-repository 'deb https://download.mono-project.com/repo/ubuntu stable-bionic main'
58-
sudo apt install mono-complete
59-
mono --version
6064
- name: Push to NuGet
6165
run: |
6266
dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)