Skip to content

Commit d9a0502

Browse files
committed
add alpine
1 parent 54a93c0 commit d9a0502

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/opencv.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,29 @@ jobs:
4343
matrix:
4444
include:
4545
- { os: ubuntu.22.04, arch: x64, runs-on: ubuntu-22.04 }
46-
- { os: ubuntu.24.04, arch: x64, runs-on: ubuntu-24.04 }
4746
- { os: ubuntu.22.04, arch: arm64, runs-on: ubuntu-22.04-arm }
48-
- { os: ubuntu.24.04, arch: arm64, runs-on: ubuntu-24.04-arm }
4947
- { os: win, arch: x64, runs-on: windows-2022 }
5048
- { os: win, arch: x86, runs-on: windows-2022 }
51-
- { os: win11, arch: x64, runs-on: windows-2025 }
5249
- { os: win, arch: arm64, runs-on: windows-11-arm }
5350
- { os: osx, arch: x64, runs-on: macos-13 }
5451
- { os: osx, arch: arm64, runs-on: macos-14 }
55-
- { os: osx.15, arch: arm64, runs-on: macos-15 }
5652
- { os: centos.7, arch: x64, runs-on: ubuntu-22.04, image: oraclelinux:7 }
5753
- { os: centos.7, arch: arm64, runs-on: ubuntu-22.04-arm, image: oraclelinux:7 }
5854
- { os: rhel.8, arch: x64, runs-on: ubuntu-22.04, image: oraclelinux:8 }
5955
- { os: rhel.8, arch: arm64, runs-on: ubuntu-22.04-arm, image: oraclelinux:8 }
60-
- { os: rhel.9, arch: x64, runs-on: ubuntu-22.04, image: oraclelinux:9 }
61-
- { os: rhel.9, arch: arm64, runs-on: ubuntu-22.04-arm, image: oraclelinux:9 }
56+
- { os: alpine.3.15, arch: x64, runs-on: ubuntu-22.04, image: alpine:3.15 }
57+
- { os: alpine.3.15, arch: arm64, runs-on: ubuntu-22.04-arm, image: alpine:3.15 }
58+
- { os: alpine.3.19, arch: x64, runs-on: ubuntu-22.04, image: alpine:3.19 }
59+
- { os: alpine.3.19, arch: arm64, runs-on: ubuntu-22.04-arm, image: alpine:3.19 }
6260
- { os: android, arch: arm64, runs-on: ubuntu-22.04 }
6361
- { os: android, arch: x64, runs-on: ubuntu-22.04 }
62+
# Uncomment the following lines to enable additional platforms(but not necessary for OpenCVSharp):
63+
# - { os: ubuntu.24.04, arch: x64, runs-on: ubuntu-24.04 }
64+
# - { os: ubuntu.24.04, arch: arm64, runs-on: ubuntu-24.04-arm }
65+
# - { os: win11, arch: x64, runs-on: windows-2025 }
66+
# - { os: osx.15, arch: arm64, runs-on: macos-15 }
67+
# - { os: rhel.9, arch: x64, runs-on: ubuntu-22.04, image: oraclelinux:9 }
68+
# - { os: rhel.9, arch: arm64, runs-on: ubuntu-22.04-arm, image: oraclelinux:9 }
6469

6570
steps:
6671
- name: Checkout OpenCV repo
@@ -128,6 +133,13 @@ jobs:
128133
yum install -y gcc cmake3 gcc-c++ make nasm
129134
EOS
130135
)
136+
elif [[ "${{ matrix.os }}" == "alpine" ]]; then
137+
script=$(
138+
cat <<'EOS'
139+
set -eux
140+
apk add --no-cache build-base cmake nasm
141+
EOS
142+
)
131143
fi
132144
echo "Executing script in Docker container: $script"
133145
docker exec builder bash -c "$script"

0 commit comments

Comments
 (0)