Skip to content

Commit dd52e28

Browse files
committed
ci(github): update package script
1 parent 40c5f31 commit dd52e28

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/ccpp.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,26 @@ jobs:
2121
npm install
2222
npm install -g @lcui/cli@beta
2323
- name: Restore xmake packages
24-
uses: actions/cache@v3
24+
uses: actions/cache@v4
2525
with:
2626
path: ~/.xmake/.cache/packages
2727
key: ${{ runner.os }}-xmake-packages
2828
- name: Build
2929
run: |
30-
lcui compile ./src
31-
xmake config -y -v
32-
xmake -v
30+
xmake config -y
31+
lcui build
3332
- name: Package
3433
run: |
35-
xmake install -o dist
36-
mkdir dist/package
37-
cp -r app dist/package/lcui-quick-start
38-
mv dist/bin/* dist/package/lcui-quick-start
34+
xmake install -o artifact/build
35+
mkdir artifact/package
36+
cp -r dist artifact/package/lcui-quick-start
37+
cp artifact/build/bin/* artifact/package/lcui-quick-start
3938
- uses: actions/upload-artifact@master
4039
with:
4140
name: package (${{ runner.os }})
42-
path: dist/package
41+
path: artifact/package
4342
- name: Cache xmake packages
44-
uses: actions/cache@v3
43+
uses: actions/cache@v4
4544
with:
4645
path: ~/.xmake/.cache/packages
4746
key: ${{ runner.os }}-xmake-packages

0 commit comments

Comments
 (0)