Skip to content

Commit

Permalink
ci(cxx): update the ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Aug 23, 2024
1 parent 7be7f88 commit f63e6df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file.

- *(cxx)* Optimize the CMakeLists
- *(cxx)* Optimize the CMakeLists
- *(cxx)* Introduce xmake option
- *(cxx)* Setup the output dir for binary and lib

### 🚜 Refactor

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ on:
branches:
- main
pull_request:
{% raw %}

jobs:
build-and-test:

name: ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}

Expand All @@ -17,32 +16,24 @@ jobs:
toolchain:
- linux-gcc
- windows-msvc

configuration:
- Debug

- macos-clang
include:
- toolchain: linux-gcc
os: ubuntu-latest
compiler: gcc

- toolchain: windows-msvc
os: windows-latest
compiler: msvc
- toolchain: macos-clang
os: macos-latest
compiler: clang

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Configure (${{ matrix.configuration }})
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=${{ matrix.configuration }}

- name: Build with ${{ matrix.compiler }}
run: cmake --build build
- name: Build
run: make build

- name: Test
working-directory: build
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest -C ${{ matrix.configuration }}
{% endraw %}
run: make run

0 comments on commit f63e6df

Please sign in to comment.