Skip to content

Commit

Permalink
ci(cxx): fix failed to run github action job for xmake project
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Aug 23, 2024
1 parent d295be9 commit a145866
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ All notable changes to this project will be documented in this file.
- Update the pre-commit version
- *(cxx)* Update the ci config
- Fix the template input error
- Build xmake and cmake example

### Build

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- main
pull_request:

{% raw %}
jobs:
build-and-test:
strategy:
Expand All @@ -15,17 +14,19 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest

{% raw %}
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}

{% endraw %}
steps:
- name: Checkout Code
uses: actions/checkout@v4

- uses: actions/checkout@v4
{% if cookiecutter.cxx_build_tool == "xmake" %}
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
{% endif %}
- name: Build
run: make build

- name: Test
run: make run
{% endraw %}

0 comments on commit a145866

Please sign in to comment.