Migrate to Conan 2.x
This commit is contained in:
parent
e67e9ea808
commit
3af3b11c7d
93
.github/workflows/osrm-backend.yml
vendored
93
.github/workflows/osrm-backend.yml
vendored
@ -23,36 +23,49 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# windows-release-node:
|
windows-release-node:
|
||||||
# needs: format-taginfo-docs
|
needs: format-taginfo-docs
|
||||||
# runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
# continue-on-error: false
|
continue-on-error: false
|
||||||
# env:
|
env:
|
||||||
# BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# - run: pip install "conan<2.0.0"
|
- run: pip install "conan<2.0.0"
|
||||||
# - run: conan --version
|
- run: conan --version
|
||||||
# - run: cmake --version
|
- run: cmake --version
|
||||||
# - uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
# with:
|
with:
|
||||||
# node-version: 18
|
node-version: 18
|
||||||
# - run: node --version
|
- run: node --version
|
||||||
# - run: npm --version
|
- run: npm --version
|
||||||
# - name: Prepare environment
|
- name: Prepare environment
|
||||||
# shell: bash
|
shell: bash
|
||||||
# run: |
|
run: |
|
||||||
# PACKAGE_JSON_VERSION=$(node -e "console.log(require('./package.json').version)")
|
PACKAGE_JSON_VERSION=$(node -e "console.log(require('./package.json').version)")
|
||||||
# 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
|
||||||
# - name: Build
|
- name: Build
|
||||||
# shell: bash
|
shell: bash
|
||||||
# run: |
|
run: |
|
||||||
# mkdir build
|
mkdir build
|
||||||
# cd build
|
cd build
|
||||||
# cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CONAN=ON -DENABLE_NODE_BINDINGS=ON ..
|
|
||||||
# cmake --build . --config Release
|
python3 -m venv .venv
|
||||||
|
source .venv/bin/activate
|
||||||
|
|
||||||
|
python3 -m pip install conan==2.7.1
|
||||||
|
|
||||||
|
conan profile detect --force
|
||||||
|
cat ~/.conan2/profiles/default
|
||||||
|
|
||||||
|
if [[ "${ENABLE_CONAN}" == "ON" ]]; then
|
||||||
|
conan install .. --output-folder=. --build=missing --settings compiler.cppstd=20
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CONAN=ON -DENABLE_NODE_BINDINGS=ON -DCMAKE_TOOLCHAIN_FILE=./conan_toolchain.cmake ..
|
||||||
|
cmake --build . --config Release
|
||||||
|
|
||||||
# # TODO: MSVC goes out of memory when building our tests
|
# # TODO: MSVC goes out of memory when building our tests
|
||||||
# # - name: Run tests
|
# # - name: Run tests
|
||||||
@ -311,16 +324,16 @@ jobs:
|
|||||||
ENABLE_CONAN: ON
|
ENABLE_CONAN: ON
|
||||||
NODE_PACKAGE_TESTS_ONLY: ON
|
NODE_PACKAGE_TESTS_ONLY: ON
|
||||||
|
|
||||||
# - name: conan-linux-debug-node
|
- name: conan-linux-debug-node
|
||||||
# build_node_package: true
|
build_node_package: true
|
||||||
# continue-on-error: false
|
continue-on-error: false
|
||||||
# node: 20
|
node: 20
|
||||||
# runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
# BUILD_TYPE: Debug
|
BUILD_TYPE: Debug
|
||||||
# CCOMPILER: clang-16
|
CCOMPILER: clang-16
|
||||||
# CXXCOMPILER: clang++-16
|
CXXCOMPILER: clang++-16
|
||||||
# ENABLE_CONAN: ON
|
ENABLE_CONAN: ON
|
||||||
# NODE_PACKAGE_TESTS_ONLY: ON
|
NODE_PACKAGE_TESTS_ONLY: ON
|
||||||
|
|
||||||
# - name: conan-macos-x64-release-node
|
# - name: conan-macos-x64-release-node
|
||||||
# build_node_package: true
|
# build_node_package: true
|
||||||
|
Loading…
Reference in New Issue
Block a user