Skip to content

Commit

Permalink
fix examples workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rainyl committed Oct 11, 2024
1 parent b0dc59d commit c9fd153
Showing 1 changed file with 36 additions and 14 deletions.
50 changes: 36 additions & 14 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ name: Examples
on:
push:
branches: ["main"]
# pull_request:
# branches: ["main"]
paths:
- ".github/workflows/**"
- "packages/opencv_dart/example/**"
- "packages/opencv_core/example/**"
paths-ignore:
- "**.md"
- "LICENSE"
pull_request:

jobs:
windows:
Expand All @@ -17,9 +23,13 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
- name: opencv_dart
run: |
cd example
cd packages/opencv_dart/example
flutter build windows
- name: opencv_core
run: |
cd packages/opencv_core/example
flutter build windows
ubuntu:
name: ubuntu
Expand All @@ -29,10 +39,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y curl git wget python3 unzip build-essential \
libgtk-3-dev ffmpeg libavcodec-dev \
cmake ninja-build nasm libavformat-dev libavutil-dev \
libswscale-dev libgflags-dev \
libjpeg-dev libpng-dev libtiff-dev python3-pip
libgtk-3-dev
- uses: subosito/flutter-action@v2
with:
channel: "stable"
Expand All @@ -43,9 +50,14 @@ jobs:
with:
distribution: 'temurin'
java-version: '11'
- name: build
- name: opencv_dart
run: |
cd packages/opencv_dart/example
flutter build linux
flutter build apk --release --target-platform android-arm64,android-arm,android-x64 --split-per-abi
- name: opencv_core
run: |
cd example
cd packages/opencv_core/example
flutter build linux
flutter build apk --release --target-platform android-arm64,android-arm,android-x64 --split-per-abi
macos:
Expand All @@ -58,9 +70,14 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
- name: opencv_dart
run: |
cd example
cd packages/opencv_dart/example
flutter build macos
flutter build ios --release --no-codesign
- name: opencv_core
run: |
cd packages/opencv_core/example
flutter build macos
flutter build ios --release --no-codesign
macos-arm:
Expand All @@ -73,8 +90,13 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
- name: opencv_dart
run: |
cd packages/opencv_dart/example
flutter build macos
flutter build ios --release --no-codesign
- name: opencv_core
run: |
cd example
cd packages/opencv_core/example
flutter build macos
flutter build ios --release --no-codesign

0 comments on commit c9fd153

Please sign in to comment.