Skip to content

Commit

Permalink
update all workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
UrielCh committed Apr 16, 2024
1 parent 2bdfb34 commit 823d6fc
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/prebuild-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,31 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install OpenCV ${{ matrix.opencv_version }}
run: |
sudo apt update
sudo apt install libopencv-dev
- name: Install Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'

- name: Install OpenCV ${{ matrix.opencv_version }}
run: |
sudo apt update
sudo apt install libopencv-dev
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
args: [--strict-peer-dependencies]
- name: pnpm run prepack
run: pnpm run prepack

- name: install deps in test
working-directory: ./test
run: pnpm install --frozen-lockfile
run: pnpm install

- name: run test-appveyor test
working-directory: ./test
Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/prebuild-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Use openCV from Brew

on:
push:
branches: [ "master" ]
paths:
- "cc/**"
- "install/**"
- "lib/**"
- "test/**"
- "typings/**"
- "package.json"
- ".github/workflows/prebuild-mac.yml"
pull_request:
branches: [ "master" ]
paths:
- "cc/**"
- "install/**"
- "lib/**"
- "test/**"
- "typings/**"
- "package.json"
- ".github/workflows/prebuild-mac.yml"

env:
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1

permissions:
contents: read

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
opencv_version:
- 4
node_version:
# - 16
# - 18
- 20

steps:
- uses: actions/checkout@v4
- name: Install Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'

- name: Install OpenCV ${{ matrix.opencv_version }}
run: |
brew install opencv@${{ matrix.opencv_version }}
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: |
- recursive: true
args: [--strict-peer-dependencies]
- name: pnpm run prepack
run: pnpm run prepack

- name: install deps in test
working-directory: ./test
run: pnpm install

- name: run test-appveyor test
working-directory: ./test
run: pnpm run test-appveyor
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- "test/**"
- "typings/**"
- "package.json"
- ".github/workflows/win64-prebuild.yml"
- ".github/workflows/prebuild-win64.yml"
pull_request:
branches: [ "master" ]
paths:
Expand All @@ -20,7 +20,7 @@ on:
- "test/**"
- "typings/**"
- "package.json"
- ".github/workflows/win64-prebuild.yml"
- ".github/workflows/prebuild-win64.yml"

env:
# Path to the solution file relative to the root of the project.
Expand Down

0 comments on commit 823d6fc

Please sign in to comment.