You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- name: windows-x64-cpu-vs2019
- on: [push, pull_request]
- jobs:
- windows-vs2019-sse2:
- runs-on: windows-latest
- steps:
- - uses: actions/checkout@v2
- - name: cache-protobuf
- id: cache-protobuf
- uses: actions/cache@v1
- with:
- path: "protobuf-install"
- key: protobuf-windows-install
- - name: protobuf
- if: steps.cache-protobuf.outputs.cache-hit != 'true'
- run: |
- Invoke-WebRequest -Uri https://github.com/protocolbuffers/protobuf/archive/v3.11.2.zip -OutFile protobuf-3.11.2.zip
- 7z x ./protobuf-3.11.2.zip
- cd protobuf-3.11.2
- mkdir build-vs2019; cd build-vs2019; cmake -DCMAKE_INSTALL_PREFIX="$env:GITHUB_WORKSPACE\protobuf-install" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_MSVC_STATIC_RUNTIME=OFF ../cmake
- cmake --build . --config Release -j 2
- cmake --build . --config Release --target install
- - name: configure
- run: |
- mkdir build; cd build
- cmake -DProtobuf_INCLUDE_DIR="$env:GITHUB_WORKSPACE\protobuf-install\include" -DProtobuf_LIBRARIES="$env:GITHUB_WORKSPACE\protobuf-install\lib\libprotobuf.lib" -DProtobuf_PROTOC_EXECUTABLE="$env:GITHUB_WORKSPACE\protobuf-install\bin\protoc.exe" -DNCNN_RUNTIME_CPU=OFF -DNCNN_AVX2=OFF ..
- - name: build
- run: cmake --build build --config Release -j 2
- - name: test
- run: cd build; ctest -C Release --output-on-failure -j 2
-
- windows-vs2019-avx2:
- runs-on: windows-latest
- steps:
- - uses: actions/checkout@v2
- - name: cache-protobuf
- id: cache-protobuf
- uses: actions/cache@v1
- with:
- path: "protobuf-install"
- key: protobuf-windows-install
- - name: protobuf
- if: steps.cache-protobuf.outputs.cache-hit != 'true'
- run: |
- Invoke-WebRequest -Uri https://github.com/protocolbuffers/protobuf/archive/v3.11.2.zip -OutFile protobuf-3.11.2.zip
- 7z x ./protobuf-3.11.2.zip
- cd protobuf-3.11.2
- mkdir build-vs2019; cd build-vs2019; cmake -DCMAKE_INSTALL_PREFIX="$env:GITHUB_WORKSPACE\protobuf-install" -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_MSVC_STATIC_RUNTIME=OFF ../cmake
- cmake --build . --config Release -j 2
- cmake --build . --config Release --target install
- - name: configure
- run: |
- mkdir build; cd build
- cmake -DProtobuf_INCLUDE_DIR="$env:GITHUB_WORKSPACE\protobuf-install\include" -DProtobuf_LIBRARIES="$env:GITHUB_WORKSPACE\protobuf-install\lib\libprotobuf.lib" -DProtobuf_PROTOC_EXECUTABLE="$env:GITHUB_WORKSPACE\protobuf-install\bin\protoc.exe" -DNCNN_RUNTIME_CPU=OFF -DNCNN_AVX2=ON ..
- - name: build
- run: cmake --build build --config Release -j 2
- - name: test
- run: cd build; ctest -C Release --output-on-failure -j 2
|