Skip to content

Commit

Permalink
use zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
rainyl committed Oct 7, 2024
1 parent 687dfd3 commit 325bced
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: setup-opencv-source
shell: zsh {0}
run: |
git clone -b ${{ matrix.opencv-version }} https://github.com/opencv/opencv.git ${{ env.SOURCE_DIR }}
Expand All @@ -57,6 +58,7 @@ jobs:
# mkdir -p $FFMPEG_ROOT/cmake
# cp -rf ${{ github.workspace }}/cmake/ffmpeg-config.cmake $FFMPEG_ROOT/cmake/
- name: build
shell: zsh {0}
run: |
mkdir -p opencv/build
cd opencv/build
Expand Down Expand Up @@ -116,6 +118,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: setup-opencv-source
shell: zsh {0}
run: |
git clone -b ${{ matrix.opencv-version }} https://github.com/opencv/opencv.git opencv
Expand All @@ -130,6 +133,7 @@ jobs:
# mkdir -p $FFMPEG_ROOT/cmake
# cp -rf ${{ github.workspace }}/cmake/ffmpeg-config.cmake $FFMPEG_ROOT/cmake/
- name: build
shell: zsh {0}
run: |
mkdir -p opencv/build
cd opencv/build
Expand Down Expand Up @@ -223,20 +227,23 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: setup-opencv-source
shell: zsh {0}
run: |
git clone -b ${{ matrix.opencv-version }} https://github.com/opencv/opencv.git opencv
git apply -p 0 patches/opencv-4.10.0-detect_ffmpeg.patch
git clone -b ${{ matrix.opencv-version }} https://github.com/opencv/opencv_contrib.git opencv_contrib
- name: setup ffmpeg
shell: zsh {0}
run: |
wget -q -O ffmpeg.tar.xz https://sourceforge.net/projects/avbuild/files/macOS/ffmpeg-6.1-macOS-lite.tar.xz
mkdir -p $FFMPEG_ROOT
tar xf ffmpeg.tar.xz -C $FFMPEG_ROOT --strip-components=1
mkdir -p $FFMPEG_ROOT/cmake
cp -rf ${{ github.workspace }}/cmake/ffmpeg-config.cmake $FFMPEG_ROOT/cmake/
- name: build
shell: zsh {0}
run: |
mkdir -p opencv/build
cd opencv/build
Expand Down

0 comments on commit 325bced

Please sign in to comment.