Skip to content

Commit 1af82b3

Browse files
committed
新增构建任务
1 parent 4cbcd0c commit 1af82b3

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: OpenHarmony Build
2+
3+
on:
4+
push:
5+
branches:
6+
- 'oh_**'
7+
pull_request:
8+
branches:
9+
- 'oh_**'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Docker
20+
uses: docker/setup-buildx-action@v2
21+
22+
- name: Build using Docker
23+
run: |
24+
docker run --rm \
25+
-v ${{ github.workspace }}:/workspace \
26+
-w /workspace \
27+
ubuntu:20.04 \
28+
bash -c "apt-get update && apt-get install -y bash && ./build-openharmony-x64.sh"

0 commit comments

Comments
 (0)