Skip to content

Commit

Permalink
build: update xpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Jan 26, 2025
1 parent b316ab3 commit 7b3aa40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,14 @@ jobs:
- name: Install packages
run: |
npm install
npm install -g @lcui/cli@beta
- name: Restore xmake packages
uses: actions/cache@v4
with:
path: ~/.xmake/.cache/packages
key: ${{ runner.os }}-xmake-packages
npm install -g @lcui/cli
- name: Build
run: |
xmake config -y
lcui build
- name: Package
run: |
xmake install -o artifact/build
mkdir artifact/package
cp -r dist artifact/package/lcui-quick-start
cp artifact/build/bin/* artifact/package/lcui-quick-start
run: xmake pack
- uses: actions/upload-artifact@master
with:
name: package (${{ runner.os }})
path: artifact/package
- name: Cache xmake packages
uses: actions/cache@v4
with:
path: ~/.xmake/.cache/packages
key: ${{ runner.os }}-xmake-packages
path: build/xpack/*/*
3 changes: 3 additions & 0 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ xpack("app")
set_formats("nsis", "zip")
set_basename("lcui-quick-start-v$(version)")
add_installfiles("dist/(**)")
add_targets("app")
set_bindir("./")
set_iconfile("logo.ico")

0 comments on commit 7b3aa40

Please sign in to comment.