.github/workflows/windows-release.yml: remove unused ncnn_tag
#32
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build (Linux-NCNN) | |
| on: | |
| push: | |
| paths: | |
| - 'common/**' | |
| - 'vsncnn/**' | |
| - '.github/workflows/linux-ncnn.yml' | |
| workflow_dispatch: | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-24.04 | |
| defaults: | |
| run: | |
| working-directory: vsncnn | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Ninja | |
| run: pip install ninja | |
| - name: Cache protobuf | |
| id: cache-protobuf | |
| uses: actions/cache@v4 | |
| with: | |
| path: vsncnn/protobuf/install | |
| key: ${{ runner.os }}-vsncnn-protobuf-v1 | |
| - name: Checkout protobuf | |
| uses: actions/checkout@v4 | |
| if: steps.cache-protobuf.outputs.cache-hit != 'true' | |
| with: | |
| repository: protocolbuffers/protobuf | |
| ref: v3.21.12 | |
| fetch-depth: 1 | |
| path: vsncnn/protobuf | |
| - name: Configure protobuf | |
| if: steps.cache-protobuf.outputs.cache-hit != 'true' | |
| run: cmake -S protobuf/cmake -B protobuf/build_rel -G Ninja -LA | |
| -D CMAKE_BUILD_TYPE=Release | |
| -D CMAKE_POSITION_INDEPENDENT_CODE=ON | |
| -D protobuf_BUILD_SHARED_LIBS=OFF -D protobuf_BUILD_TESTS=OFF | |
| - name: Build protobuf | |
| if: steps.cache-protobuf.outputs.cache-hit != 'true' | |
| run: cmake --build protobuf/build_rel --verbose | |
| - name: Install protobuf | |
| if: steps.cache-protobuf.outputs.cache-hit != 'true' | |
| run: cmake --install protobuf/build_rel --prefix protobuf/install | |
| - name: Cache onnx | |
| id: cache-onnx | |
| uses: actions/cache@v4 | |
| with: | |
| path: vsncnn/onnx/install | |
| key: ${{ runner.os }}-vsncnn-onnx-v1 | |
| - name: Checkout onnx | |
| if: steps.cache-onnx.outputs.cache-hit != 'true' | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: onnx/onnx | |
| ref: b86cc54efce19530fb953e4b21f57e6b3888534c | |
| fetch-depth: 1 | |
| path: vsncnn/onnx | |
| - name: Configure onnx | |
| if: steps.cache-onnx.outputs.cache-hit != 'true' | |
| run: cmake -S onnx -B onnx/build -G Ninja -LA | |
| -D CMAKE_BUILD_TYPE=Release | |
| -D CMAKE_POSITION_INDEPENDENT_CODE=ON | |
| -D Protobuf_PROTOC_EXECUTABLE=protobuf/install/bin/protoc | |
| -D Protobuf_LITE_LIBRARY=protobuf/install/lib | |
| -D Protobuf_LIBRARIES=protobuf/install/lib | |
| -D ONNX_USE_LITE_PROTO=ON -D ONNX_USE_PROTOBUF_SHARED_LIBS=OFF | |
| -D ONNX_GEN_PB_TYPE_STUBS=OFF -D ONNX_ML=0 | |
| - name: Build onnx | |
| if: steps.cache-onnx.outputs.cache-hit != 'true' | |
| run: cmake --build onnx/build --verbose | |
| - name: Install onnx | |
| if: steps.cache-onnx.outputs.cache-hit != 'true' | |
| run: cmake --install onnx/build --prefix onnx/install | |
| - name: Download VapourSynth headers | |
| run: | | |
| wget -q -O vs.zip https://github.com/vapoursynth/vapoursynth/archive/refs/tags/R57.zip | |
| unzip -q vs.zip | |
| mv vapoursynth*/ vapoursynth | |
| - name: Download NCNN Precompilation | |
| run: | | |
| curl -s -o ncnn.zip -LJO https://github.com/Tencent/ncnn/releases/download/20250503/ncnn-20250503-ubuntu-2404.zip | |
| unzip -q ncnn.zip | |
| - name: Configure | |
| run: cmake -S . -B build -G Ninja -LA | |
| -D CMAKE_BUILD_TYPE=Release | |
| -D VAPOURSYNTH_INCLUDE_DIRECTORY=vapoursynth/include | |
| -D protobuf_DIR=protobuf/install/lib/cmake/protobuf | |
| -D ONNX_DIR=onnx/install/lib/cmake/ONNX | |
| -D ncnn_DIR=ncnn-20250503-ubuntu-2404/lib/cmake/ncnn | |
| -D CMAKE_CXX_STANDARD=20 | |
| - name: Build | |
| run: cmake --build build --verbose | |
| - name: Install | |
| run: cmake --install build --prefix install | |
| - name: Prepare for upload | |
| run: | | |
| mkdir artifact | |
| cp -v install/lib/*.so artifact | |
| - name: Describe | |
| run: git describe --tags --long | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vsncnn-linux-x64 | |
| path: vsncnn/artifact |