Skip to content

Commit 7d29ff3

Browse files
authored
SSE2版のビルドも行うよう変更
1 parent d00f1af commit 7d29ff3

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ on:
55

66
jobs:
77
build:
8+
strategy:
89
runs-on: windows-latest
10+
strategy:
11+
matrix:
12+
arch: [AVX, SSE2]
913

1014
steps:
1115
- name: Checkout repository
@@ -21,7 +25,7 @@ jobs:
2125
2226
- name: Build MotionTracking_MK-II_Plus
2327
run: |
24-
cmake -S src -B src/build -D CMAKE_GENERATOR_PLATFORM=Win32 -D OPENCV_INCLUDE_DIR=opencv/build/install/include -D OPENCV_LIBRARY_DIR=opencv/build/install/x86/vc17/staticlib
28+
cmake -S src -B src/build -D CMAKE_GENERATOR_PLATFORM=Win32 -D OPENCV_INCLUDE_DIR=opencv/build/install/include -D OPENCV_LIBRARY_DIR=opencv/build/install/x86/vc17/staticlib -D MSVC_ARCH=${{ matrix.arch }}
2529
cmake --build src/build --config Release
2630
2731
- name: Create Archive
@@ -34,13 +38,13 @@ jobs:
3438
mkdir MotionTracking_model
3539
move opencv/data/haarcascades/haarcascade_frontalface_default.xml MotionTracking_model/haarcascade_frontalface_default.xml
3640
move opencv/data/haarcascades/haarcascade_profileface.xml MotionTracking_model/haarcascade_profileface.xml
37-
7z a MotionTrackingMKIIPlus.zip MotionTrackingMKIIPlus.auf README.md README.ja.md Licenses MotionTracking_model
41+
7z a MotionTrackingMKIIPlus-${{ matrix.arch }}.zip MotionTrackingMKIIPlus.auf README.md README.ja.md Licenses MotionTracking_model
3842
3943
- name: Upload artifact
4044
uses: actions/upload-artifact@v4
4145
with:
42-
name: MotionTrackingMKIIPlus
43-
path: ${{ github.workspace }}/MotionTrackingMKIIPlus.zip
46+
name: MotionTrackingMKIIPlus-${{ matrix.arch }}
47+
path: ${{ github.workspace }}/MotionTrackingMKIIPlus-${{ matrix.arch }}.zip
4448

4549
create_release:
4650
name: Create release
@@ -55,14 +59,16 @@ jobs:
5559

5660
- uses: actions/download-artifact@v4
5761
with:
58-
name: MotionTrackingMKIIPlus
5962
path: artifacts
6063

6164
- name: Create a Release
6265
env:
6366
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6467
run: |
68+
cd ${{ github.workspace }}/artifacts
69+
mv ./*/*.zip ./
6570
REVCOUNT=`git rev-list --count HEAD`
6671
RELEASE_NAME=r${REVCOUNT}
6772
TAG_NAME=r${REVCOUNT}
68-
gh release create "${TAG_NAME}" ${{ github.workspace }}/artifacts/*.zip -t "${RELEASE_NAME}"
73+
echo "通常はAVX版を使用することをお勧めします。AVX版が動作しない場合のみSSE2版をお使いください。" >> ReleaseNotes.txt
74+
gh release create "${TAG_NAME}" ${{ github.workspace }}/artifacts/*.zip -t "${RELEASE_NAME}" -F ReleaseNotes.txt

0 commit comments

Comments
 (0)