wip
This commit is contained in:
parent
01996f3e6e
commit
d6f42b4399
89
.github/workflows/osrm-backend.yml
vendored
89
.github/workflows/osrm-backend.yml
vendored
@ -29,25 +29,8 @@ jobs:
|
||||
continue-on-error: false
|
||||
env:
|
||||
BUILD_TYPE: Release
|
||||
# CC: gcc
|
||||
# CXX: g++
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# - name: Install Ninja
|
||||
# shell: cmd
|
||||
# run: |
|
||||
# choco install ninja -y
|
||||
# refreshenv
|
||||
|
||||
# - name: Verify Ninja installation
|
||||
# run: ninja --version
|
||||
# - name: Enable Conan cache
|
||||
# uses: actions/cache@v4
|
||||
# with:
|
||||
# path: ~/.conan
|
||||
# key: v9-conan-windows-${{ github.sha }}
|
||||
# restore-keys: |
|
||||
# v9-conan-windows-
|
||||
- run: pip install "conan<2.0.0"
|
||||
- run: conan --version
|
||||
- run: cmake --version
|
||||
@ -63,60 +46,42 @@ jobs:
|
||||
echo PUBLISH=$([[ "${GITHUB_REF:-}" == "refs/tags/v${PACKAGE_JSON_VERSION}" ]] && echo "On" || echo "Off") >> $GITHUB_ENV
|
||||
- run: npm install --ignore-scripts
|
||||
- run: npm link --ignore-scripts
|
||||
# - uses: microsoft/setup-msbuild@v2
|
||||
# - name: Set up Clang in PATH
|
||||
# shell: bash
|
||||
# run: |
|
||||
# clang --version
|
||||
# clang++ --version
|
||||
# - name: Configure Conan to use Clang
|
||||
# shell: bash
|
||||
# run: |
|
||||
# conan profile new default --detect || true
|
||||
# conan profile update settings.compiler=clang default
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
#.\scripts\ci\windows-build.bat
|
||||
# make --version
|
||||
# clang --version
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CONAN=ON -DENABLE_NODE_BINDINGS=ON ..
|
||||
cmake --build . --config Release
|
||||
cmake --build . --config Release --target tests
|
||||
|
||||
- name: Run tests
|
||||
shell: bash
|
||||
run: |
|
||||
ls -R build
|
||||
- name: Run tests
|
||||
shell: bash
|
||||
run: |
|
||||
./build/unit_tests/Release/server-tests.exe
|
||||
|
||||
# .\scripts\ci\windows-build.bat
|
||||
# - name: Run node tests
|
||||
|
||||
# TODO: MSVC goes out of memory when building our tests
|
||||
# - name: Run tests
|
||||
# shell: bash
|
||||
# run: |
|
||||
# ./lib/binding/osrm-datastore.exe test/data/ch/monaco.osrm
|
||||
# node test/nodejs/index.js
|
||||
# - name: Build Node package
|
||||
# shell: bash
|
||||
# run: ./scripts/ci/node_package.sh
|
||||
# - name: Publish Node package
|
||||
# if: ${{ env.PUBLISH == 'On' }}
|
||||
# uses: ncipollo/release-action@v1
|
||||
# with:
|
||||
# allowUpdates: true
|
||||
# artifactErrorsFailBuild: true
|
||||
# artifacts: build/stage/**/*.tar.gz
|
||||
# omitBody: true
|
||||
# omitBodyDuringUpdate: true
|
||||
# omitName: true
|
||||
# omitNameDuringUpdate: true
|
||||
# replacesArtifacts: true
|
||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# cd build
|
||||
# cmake --build . --config Release --target tests
|
||||
# # TODO: run tests
|
||||
- name: Run node tests
|
||||
shell: bash
|
||||
run: |
|
||||
./lib/binding/osrm-datastore.exe test/data/ch/monaco.osrm
|
||||
node test/nodejs/index.js
|
||||
- name: Build Node package
|
||||
shell: bash
|
||||
run: ./scripts/ci/node_package.sh
|
||||
- name: Publish Node package
|
||||
if: ${{ env.PUBLISH == 'On' }}
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
allowUpdates: true
|
||||
artifactErrorsFailBuild: true
|
||||
artifacts: build/stage/**/*.tar.gz
|
||||
omitBody: true
|
||||
omitBodyDuringUpdate: true
|
||||
omitName: true
|
||||
omitNameDuringUpdate: true
|
||||
replacesArtifacts: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
format-taginfo-docs:
|
||||
runs-on: ubuntu-22.04
|
||||
|
Loading…
Reference in New Issue
Block a user