Skip to content

Commit d0ccea6

Browse files
authored
build for debian bullseye and bookworm (nihui#104)
1 parent 4165423 commit d0ccea6

File tree

1 file changed

+57
-2
lines changed

1 file changed

+57
-2
lines changed

.github/workflows/release.yml

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,58 @@ jobs:
17371737
strategy:
17381738
matrix:
17391739
include:
1740+
- name: debian-bullseye-arm
1741+
os-image: debian:bullseye
1742+
single-core: false
1743+
cmake-toolchain: arm-linux-gnueabihf.toolchain.cmake
1744+
setup-toolchain-cmd: |
1745+
apt-get update
1746+
apt-get install -y unzip zip patch cmake g++-arm-linux-gnueabihf
1747+
setup-env-cmd: |
1748+
echo "fine :)"
1749+
setup-test-env-cmd: |
1750+
echo "fine :)"
1751+
cmake-options:
1752+
1753+
- name: debian-bullseye-aarch64
1754+
os-image: debian:bullseye
1755+
single-core: false
1756+
cmake-toolchain: aarch64-linux-gnu.toolchain.cmake
1757+
setup-toolchain-cmd: |
1758+
apt-get update
1759+
apt-get install -y unzip zip patch cmake g++-aarch64-linux-gnu
1760+
setup-env-cmd: |
1761+
echo "fine :)"
1762+
setup-test-env-cmd: |
1763+
echo "fine :)"
1764+
cmake-options:
1765+
1766+
- name: debian-bookworm-arm
1767+
os-image: debian:bookworm
1768+
single-core: false
1769+
cmake-toolchain: arm-linux-gnueabihf.toolchain.cmake
1770+
setup-toolchain-cmd: |
1771+
apt-get update
1772+
apt-get install -y unzip zip patch cmake g++-arm-linux-gnueabihf
1773+
setup-env-cmd: |
1774+
echo "fine :)"
1775+
setup-test-env-cmd: |
1776+
echo "fine :)"
1777+
cmake-options:
1778+
1779+
- name: debian-bookworm-aarch64
1780+
os-image: debian:bookworm
1781+
single-core: false
1782+
cmake-toolchain: aarch64-linux-gnu.toolchain.cmake
1783+
setup-toolchain-cmd: |
1784+
apt-get update
1785+
apt-get install -y unzip zip patch cmake g++-aarch64-linux-gnu
1786+
setup-env-cmd: |
1787+
echo "fine :)"
1788+
setup-test-env-cmd: |
1789+
echo "fine :)"
1790+
cmake-options: -DWITH_RPI=ON
1791+
17401792
- name: milkv-duo
17411793
single-core: true
17421794
cmake-toolchain: riscv64-unknown-linux-musl.toolchain.cmake
@@ -1865,6 +1917,9 @@ jobs:
18651917
export TOOLCHAIN_ROOT_PATH=$GITHUB_WORKSPACE/arm-rockchip830-linux-uclibcgnueabihf
18661918
cmake-options: -DWITH_RK=ON
18671919

1920+
container:
1921+
image: ${{ matrix.os-image }}
1922+
18681923
env:
18691924
COMMON_CMAKE_OPTIONS: |
18701925
-DCMAKE_TOOLCHAIN_FILE=../../toolchains/${{ matrix.cmake-toolchain }} \
@@ -1878,13 +1933,13 @@ jobs:
18781933
- uses: actions/download-artifact@v4
18791934
with:
18801935
name: opencv-mobile-4.11.0-source
1936+
- name: setup-toolchain
1937+
run: ${{ matrix.setup-toolchain-cmd }}
18811938
- name: setup-opencv-source
18821939
run: |
18831940
unzip -q opencv-mobile-4.11.0.zip
18841941
echo "SOURCE_DIR=opencv-mobile-4.11.0" >> $GITHUB_ENV
18851942
echo "PACKAGE_NAME=opencv-mobile-4.11.0-${{ matrix.name }}" >> $GITHUB_ENV
1886-
- name: setup-toolchain
1887-
run: ${{ matrix.setup-toolchain-cmd }}
18881943
18891944
- name: build-disable-thread
18901945
if: ${{ matrix.single-core }}

0 commit comments

Comments
 (0)