-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a Github Actions pipeline for macOS
- Loading branch information
1 parent
325d163
commit 7686632
Showing
6 changed files
with
127 additions
and
90 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: test | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
linux-clang: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Run vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
- uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: "16" | ||
- name: link clang lib | ||
run: | | ||
sudo mkdir -p /usr/lib/llvm-16/lib | ||
sudo ln -s clang /usr/lib/llvm-16/lib/clang | ||
working-directory: ${{ env.LLVM_PATH }}/lib | ||
- name: Run test | ||
env: | ||
CC: clang | ||
CXX: clang++ | ||
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 | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: test | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
linux-gcc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Run vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
- name: install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y g++ | ||
- name: Run test | ||
run: | | ||
g++ --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 | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: test | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
macos-clang: | ||
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 | ||
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 | ||
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 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: test | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
windows-msvc: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
- uses: lukka/run-vcpkg@v11 | ||
- name: Run test | ||
run: | | ||
cmake -S . -B build -DREFLECTCPP_BUILD_TESTS=ON -DREFLECTCPP_BSON=ON -DREFLECTCPP_CBOR=ON -DREFLECTCPP_FLEXBUFFERS=ON -DREFLECTCPP_MSGPACK=ON -DREFLECTCPP_XML=ON -DREFLECTCPP_TOML=ON -DREFLECTCPP_YAML=ON -DCMAKE_BUILD_TYPE=Release | ||
cmake --build build --config Release -j4 | ||
.\build\tests\json\Release\reflect-cpp-json-tests.exe | ||
.\build\tests\bson\Release\reflect-cpp-bson-tests.exe | ||
.\build\tests\cbor\Release\reflect-cpp-cbor-tests.exe | ||
.\build\tests\flexbuffers\Release\reflect-cpp-flexbuffers-tests.exe | ||
.\build\tests\msgpack\Release\reflect-cpp-msgpack-tests.exe | ||
.\build\tests\toml\Release\reflect-cpp-toml-tests.exe | ||
.\build\tests\xml\Release\reflect-cpp-xml-tests.exe | ||
.\build\tests\yaml\Release\reflect-cpp-yaml-tests.exe |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ | |
*.yaml | ||
|
||
!vcpkg.json | ||
!.github/**/*.yaml | ||
|
||
# clangd | ||
compile_flags.txt | ||
|