Skip to content

Commit 3a8f6e2

Browse files
committed
2 parents 5711168 + 65105e5 commit 3a8f6e2

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/openharmony-build.yml

Lines changed: 18 additions & 1 deletion
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,12 @@ 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+
54+
- name: Upload a Build Artifact
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: packages
58+
path: output
4259

4360
publish-to-nuget:
4461
needs: build

0 commit comments

Comments
 (0)