Skip to content

fix: merge conflict #75

fix: merge conflict

fix: merge conflict #75

Workflow file for this run

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 }}"