Skip to content

Commit

Permalink
fixup! build: update c/cpp workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Dec 14, 2023
1 parent ed57d5a commit c1c9e2d
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,44 @@ name: C/C++ CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
name: "Builds binaries on ${{ matrix.os }}"
steps:
- uses: actions/checkout@v1
- uses: xmake-io/github-action-setup-xmake@v1
- name: install lcui-cli
run: npm install -g @lcui/cli
- name: setup
run: |
git submodule sync --recursive
git submodule update --init --recursive
- name: Install packages
run: |
npm install
npm install -g @lcui/cli
- name: Restore xmake packages
uses: actions/cache@v3
with:
path: ~/.xmake/.cache/packages
key: ${{ runner.os }}-xmake-packages
- name: build
run: |
lcui compile ./src
xmake config -y -v
xmake -v
- name: Package
run: |
xmake package -v
xmake install -o app
- uses: actions/upload-artifact@master
with:
name: package (${{ runner.os }})
path: dist
- name: Cache xmake packages
uses: actions/cache@v3
with:
path: ~/.xmake/.cache/packages
key: ${{ runner.os }}-xmake-packages

0 comments on commit c1c9e2d

Please sign in to comment.