This commit is contained in:
Siarhei Fedartsou 2024-06-07 17:27:11 +02:00
parent dd264c5ac8
commit bb812ab1f3

View File

@ -31,6 +31,13 @@ jobs:
BUILD_TYPE: Release BUILD_TYPE: Release
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install Ninja
run: |
choco install ninja -y
refreshenv
- name: Verify Ninja installation
run: ninja --version
# - name: Enable Conan cache # - name: Enable Conan cache
# uses: actions/cache@v4 # uses: actions/cache@v4
# with: # with:
@ -53,14 +60,20 @@ jobs:
echo PUBLISH=$([[ "${GITHUB_REF:-}" == "refs/tags/v${PACKAGE_JSON_VERSION}" ]] && echo "On" || echo "Off") >> $GITHUB_ENV echo PUBLISH=$([[ "${GITHUB_REF:-}" == "refs/tags/v${PACKAGE_JSON_VERSION}" ]] && echo "On" || echo "Off") >> $GITHUB_ENV
- run: npm install --ignore-scripts - run: npm install --ignore-scripts
- run: npm link --ignore-scripts - run: npm link --ignore-scripts
- uses: microsoft/setup-msbuild@v2 # - uses: microsoft/setup-msbuild@v2
- name: Set up Clang in PATH
shell: bash
run: |
echo "::add-path::C:\\Program Files\\LLVM\\bin"
clang --version
clang++ --version
- name: Build - name: Build
run: | run: |
make --version make --version
clang --version clang --version
mkdir build mkdir build
cd build cd build
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CONAN=ON -DENABLE_NODE_BINDINGS=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .. cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DENABLE_CONAN=ON -DENABLE_NODE_BINDINGS=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..
cmake --build . --config Release cmake --build . --config Release
# .\scripts\ci\windows-build.bat # .\scripts\ci\windows-build.bat