Migrate to Conan 2.x
This commit is contained in:
parent
1d06531a55
commit
96543393f7
90
.github/workflows/osrm-backend.yml
vendored
90
.github/workflows/osrm-backend.yml
vendored
@ -23,47 +23,47 @@ 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: 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
|
||||||
|
|
||||||
python3 -m venv .venv
|
# python3 -m venv .venv
|
||||||
|
|
||||||
source .venv/Scripts/Activate
|
# source .venv/Scripts/Activate
|
||||||
|
|
||||||
python3 -m pip install conan==2.7.1
|
# python3 -m pip install conan==2.7.1
|
||||||
|
|
||||||
conan profile detect --force
|
# conan profile detect --force
|
||||||
|
|
||||||
conan install .. --output-folder=. --build=missing --settings compiler.cppstd=20
|
# conan install .. --output-folder=. --build=missing --settings compiler.cppstd=20
|
||||||
|
|
||||||
ls -la
|
# ls -la
|
||||||
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CONAN=ON -DENABLE_NODE_BINDINGS=ON -DCMAKE_TOOLCHAIN_FILE=./conan_toolchain.cmake ..
|
# cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CONAN=ON -DENABLE_NODE_BINDINGS=ON -DCMAKE_TOOLCHAIN_FILE=./conan_toolchain.cmake ..
|
||||||
cmake --build . --config Release
|
# 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
|
||||||
@ -333,17 +333,17 @@ jobs:
|
|||||||
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
|
||||||
# continue-on-error: true
|
continue-on-error: true
|
||||||
# node: 20
|
node: 20
|
||||||
# runs-on: macos-13 # x86_64
|
runs-on: macos-13 # x86_64
|
||||||
# BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
# CCOMPILER: clang
|
CCOMPILER: clang
|
||||||
# CXXCOMPILER: clang++
|
CXXCOMPILER: clang++
|
||||||
# CUCUMBER_TIMEOUT: 60000
|
CUCUMBER_TIMEOUT: 60000
|
||||||
# ENABLE_ASSERTIONS: ON
|
ENABLE_ASSERTIONS: ON
|
||||||
# ENABLE_CONAN: ON
|
ENABLE_CONAN: ON
|
||||||
|
|
||||||
# - name: conan-macos-arm64-release-node
|
# - name: conan-macos-arm64-release-node
|
||||||
# build_node_package: true
|
# build_node_package: true
|
||||||
|
Loading…
Reference in New Issue
Block a user