add: reverse utf-8支持 #83
Workflow file for this run
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: | |
- "**.c" | |
- "**.h" | |
- "**.hpp" | |
- "**.cpp" | |
- "Makefile" | |
- ".github/workflows/tests.yml" | |
pull_request: | |
branches: [master] | |
paths: | |
- "**.c" | |
- "**.h" | |
- "**.hpp" | |
- "**.cpp" | |
- "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: [x86, x64] | |
buildin-div: ["0", "1"] | |
buildin-alloc: ["0", "1"] | |
runs-on: ubuntu-latest | |
name: "Tests" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
# 设置GCC版本s | |
- 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=${{ matrix.buildin-alloc }} -D_MSTR_USE_HARDWARE_DIV=${{ matrix.buildin-div }}" |