Skip to content

Commit

Permalink
Separate build for macOS arm and macos x64
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzicheng1987 committed Apr 28, 2024
1 parent ab66396 commit 0745d59
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/macos-clang-arm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: test

on: [ push, pull_request ]

jobs:
macos-clang-arm:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Run vcpkg
uses: lukka/run-vcpkg@v11
- name: Run test
env:
CC: clang
CXX: clang++
VCPKG_FORCE_SYSTEM_BINARIES: arm
run: |
clang --version
cmake -S . -B build -DREFLECTCPP_BUILD_TESTS=ON -DREFLECTCPP_BSON=ON -DREFLECTCPP_CBOR=ON -DREFLECTCPP_FLEXBUFFERS=ON -DREFLECTCPP_MSGPACK=ON -DREFLECTCPP_TOML=ON -DREFLECTCPP_XML=ON -DREFLECTCPP_YAML=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_MAKE_PROGRAM=make
cmake --build build -j 4
./build/tests/bson/reflect-cpp-bson-tests
./build/tests/cbor/reflect-cpp-cbor-tests
./build/tests/flexbuffers/reflect-cpp-flexbuffers-tests
./build/tests/json/reflect-cpp-json-tests
./build/tests/msgpack/reflect-cpp-msgpack-tests
./build/tests/toml/reflect-cpp-toml-tests
./build/tests/xml/reflect-cpp-xml-tests
./build/tests/yaml/reflect-cpp-yaml-tests
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: test
on: [ push, pull_request ]

jobs:
macos-clang:
macos-clang-x64:
runs-on: macos-13
steps:
- name: Checkout
Expand Down

0 comments on commit 0745d59

Please sign in to comment.