Skip to content

Commit e673767

Browse files
committed
修改脚本
1 parent 12a474d commit e673767

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/openharmony-build.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,15 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818

19-
- name: Ensure Docker is running
19+
- name: Ensure Docker is installed and running
2020
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y docker.io
2123
sudo systemctl start docker
2224
sudo systemctl enable docker
2325
docker --version
2426
25-
- name: Set up Docker
26-
uses: docker/setup-buildx-action@v2
27-
28-
- name: Build using Docker
27+
- name: Run build script
2928
run: |
30-
docker run --rm \
31-
-v ${{ github.workspace }}:/workspace \
32-
-w /workspace \
33-
ubuntu:20.04 \
34-
bash -c "apt-get update && apt-get install -y bash && ./build-openharmony-x64.sh"
29+
chmod +x ./build-openharmony-x64.sh
30+
./build-openharmony-x64.sh

0 commit comments

Comments
 (0)