Skip to content

Commit

Permalink
build: ignore example build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Jan 2, 2024
1 parent d89ef8f commit 919f8c5
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,36 @@ jobs:
xmake package -v
xmake install -o dist/lcui-package
- name: Package examples
- name: Package example (hello)
run: |
cd examples
xmake -P . -v -y
xmake install -P . -o ../dist/lcui-examples
mv ../dist/lcui-examples/bin/* ../dist/lcui-examples/
rm -r ../dist/lcui-examples/bin
xmake -P . -v -y hello
xmake install -P . -o ../dist/lcui-examples/hello hello
mv ../dist/lcui-examples/hello/bin/* ../dist/lcui-examples/hello
rm -r ../dist/lcui-examples/hello/bin
- name: Package example (todolist)
run: |
cd examples
xmake -P . -v -y todolist
xmake install -P . -o ../dist/lcui-examples/todolist todolist
mv ../dist/lcui-examples/todolist/bin/* ../dist/lcui-examples/todolist
rm -r ../dist/lcui-examples/todolist/bin
- name: Package example (fabric)
continue-on-error: true
run: |
cd examples
xmake -P . -v -y fabric
xmake install -P . -o ../dist/lcui-examples/fabric fabric
mv ../dist/lcui-examples/fabric/bin/* ../dist/lcui-examples/fabric
rm -r ../dist/lcui-examples/fabric/bin
- uses: actions/upload-artifact@master
with:
name: lcui-package (${{ runner.os }})
name: lcui (${{ runner.os }})
path: |
dist/lcui-package
dist/lcui
- uses: actions/upload-artifact@master
with:
Expand Down

0 comments on commit 919f8c5

Please sign in to comment.