build(deps): bump thirds/unity from 1b9199e
to 1d28a99
#231
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
paths: | |
- "inc/**.h" | |
- "inc/**.hpp" | |
- "src/**.c" | |
- "src/**.cpp" | |
- "tests/**.c" | |
- "tests/**.cpp" | |
- "Makefile" | |
- "thirds/unity" | |
- ".github/workflows/tests.yml" | |
pull_request: | |
branches: [master] | |
paths: | |
- "inc/**.h" | |
- "inc/**.hpp" | |
- "src/**.c" | |
- "src/**.cpp" | |
- "tests/**.c" | |
- "tests/**.cpp" | |
- "thirds/unity" | |
- "Makefile" | |
- ".github/workflows/tests.yml" | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: "Log level" | |
required: true | |
default: "warning" | |
jobs: | |
tests-pchost: | |
strategy: | |
fail-fast: true | |
matrix: | |
platform: [x64] | |
buildin-div: ["0", "1"] | |
utf-8-support: ["0", "1"] | |
runs-on: ubuntu-latest | |
name: >- | |
Tests ${{ matrix.platform }} | |
div: ${{ matrix.buildin-div }} | |
utf-8: ${{ matrix.utf-8-support }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
# 设置GCC版本 | |
- name: Set up GCC | |
uses: egor-tensin/setup-gcc@v1 | |
with: | |
version: latest | |
platform: "${{ matrix.platform }}" | |
# 进行测试 | |
- name: Test | |
run: | | |
make test | |
env: | |
MTFMT_BUILD_USE_LTO: "1" | |
MTFMT_BUILD_C_DEFS: >- | |
-D_MSTR_USE_MALLOC=0 | |
-D_MSTR_USE_HARDWARE_DIV=${{ matrix.buildin-div }} | |
-D_MSTR_USE_UTF_8=${{ matrix.utf-8-support }} | |
-D_MSTR_USE_FP_FLOAT32=1 | |
-D_MSTR_USE_FP_FLOAT64=1 |