diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 673c3dacd..26a310d93 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -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: