Skip to content

Commit

Permalink
unified windows ci (Tencent#5424)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored and sen.li committed May 7, 2024
1 parent e170a7b commit c653ad4
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 434 deletions.
57 changes: 0 additions & 57 deletions .github/workflows/windows-arm-cpu.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/windows-arm-gpu.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
name: windows-arm64-cpu
name: windows-arm
on:
push:
branches: [master]
paths:
- '.github/workflows/windows-arm64-cpu.yml'
- '.github/workflows/windows-arm.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'src/*'
- 'src/layer/*'
- 'src/layer/arm/**'
- 'src/layer/vulkan/**'
- 'tests/**'
pull_request:
branches: [master]
paths:
- '.github/workflows/windows-arm64-cpu.yml'
- '.github/workflows/windows-arm.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'src/*'
- 'src/layer/*'
- 'src/layer/arm/**'
- 'src/layer/vulkan/**'
- 'tests/**'
concurrency:
group: windows-arm64-cpu-${{ github.ref }}
group: windows-arm-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
Expand All @@ -43,17 +45,31 @@ jobs:

env:
UseMultiToolTask: true
NCNN_CMAKE_OPTIONS: -DNCNN_BUILD_TESTS=OFF -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_VULKAN=ON

steps:
- uses: actions/checkout@v4
- name: build
with:
submodules: true
- name: arm64
run: |
mkdir build-arm64; cd build-arm64
cmake -T ${{ matrix.toolset-version }},host=x64 -A arm64 ${{ env.NCNN_CMAKE_OPTIONS }} ..
cmake --build . --config Release -j 4
- name: arm
run: |
mkdir build-arm; cd build-arm
cmake -T ${{ matrix.toolset-version }},host=x64 -A arm ${{ env.NCNN_CMAKE_OPTIONS }} ..
cmake --build . --config Release -j 4
- name: arm64-shared
run: |
mkdir build; cd build
cmake -T ${{ matrix.toolset-version }},host=x64 -A arm64 -DNCNN_BUILD_TESTS=OFF -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF ..
mkdir build-arm64-shared; cd build-arm64-shared
cmake -T ${{ matrix.toolset-version }},host=x64 -A arm64 ${{ env.NCNN_CMAKE_OPTIONS }} -DNCNN_SHARED_LIB=ON ..
cmake --build . --config Release -j 4
- name: build-shared
- name: arm-shared
run: |
mkdir build-shared; cd build-shared
cmake -T ${{ matrix.toolset-version }},host=x64 -A arm64 -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_SHARED_LIB=ON ..
mkdir build-arm-shared; cd build-arm-shared
cmake -T ${{ matrix.toolset-version }},host=x64 -A arm ${{ env.NCNN_CMAKE_OPTIONS }} -DNCNN_SHARED_LIB=ON ..
cmake --build . --config Release -j 4
woa-linux:
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/windows-arm64-gpu.yml

This file was deleted.

102 changes: 0 additions & 102 deletions .github/workflows/windows-x64-cpu.yml

This file was deleted.

Loading

0 comments on commit c653ad4

Please sign in to comment.