Skip to content

Commit

Permalink
ci(github): test xmake
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Sep 27, 2024
1 parent c106c94 commit d723d24
Showing 1 changed file with 0 additions and 81 deletions.
81 changes: 0 additions & 81 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,48 +39,6 @@ jobs:
if: runner.os == 'Windows'
run: xmake config -y -k ${{ env.TARGET_KIND }} -m release --ci-env=y

- name: Configure for coverage mode
if: runner.os == 'Linux'
run: xmake config -y -k ${{ env.TARGET_KIND }} -m coverage --ci-env=y

- name: Build
run: |
xmake
xmake build yutil_test
xmake build pandagl_tests
xmake build libcss_tests
xmake build libui-router-tests
xmake build libi18n-tests
xmake build lcui_tests
- name: Run tests for libraries with memcheck
if: runner.os == 'Linux'
run: |
xmake run pandagl_tests
xmake run yutil_test --memcheck
xmake run libcss_tests --memcheck
xmake run libui-router-tests --memcheck
xmake run libi18n-tests --memcheck
- name: Run tests for lcui with memcheck
if: runner.os == 'Linux'
run: |
xmake run lcui_tests --memcheck
- name: Run tests
if: runner.os == 'Windows'
run: |
xmake run pandagl_tests
xmake run yutil_test
xmake run libcss_tests
xmake run libui-router-tests
xmake run libi18n-tests
xmake run lcui_tests
- name: Upload reports to Codecov
if: runner.os == 'Linux'
run: bash <(curl -s https://codecov.io/bash);

- name: Build for release
run: |
xmake config -y -v -k ${{ env.TARGET_KIND }} -m release
Expand Down Expand Up @@ -117,42 +75,3 @@ jobs:
with:
path: ~/.xmake/.cache/packages
key: ${{ runner.os }}-xmake-packages

release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: [build]
env:
ARTIFACT_DIR: ./release

steps:
- uses: actions/checkout@v1

- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: ${{ env.ARTIFACT_DIR }}

- name: Set release version
run: python ./.github/scripts/get_release_version.py

- name: Create release notes
run: python ./.github/scripts/get_release_notes.py

- name: Read package.json
id: release_notes
uses: juliangruber/read-file-action@v1
with:
path: RELEASE_NOTES.md
trim: false

- name: Create release
uses: svenstaro/upload-release-action@v2
with:
body: ${{ steps.release_notes.outputs.content }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
release_name: LCUI ${{ env.REL_VERSION }}
tag: ${{ github.ref }}
file: ${{ env.ARTIFACT_DIR }}/*
overwrite: true
file_glob: true

0 comments on commit d723d24

Please sign in to comment.