Skip to content

Commit f26173e

Browse files
committed
remove aarch64-windows-msvc and ppc64le-linux-gnu for now
Signed-off-by: Cocoa <i@uwucocoa.moe>
1 parent ebc76e3 commit f26173e

File tree

3 files changed

+30
-18
lines changed

3 files changed

+30
-18
lines changed

.github/workflows/linux-precompile-gnu.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ jobs:
5757
cpp_compiler: armv6-nerves-linux-gnueabihf-g++
5858
OTP_VERSION: "25"
5959
NIF_VERSION: "2.16"
60-
- pair:
61-
arch: ppc64le-linux-gnu
62-
cmake_toolchain_file: cc_toolchain/ppc64le-linux-gnu.cmake
63-
c_compiler: gcc-powerpc64le-linux-gnu
64-
cpp_compiler: g++-powerpc64le-linux-gnu
65-
OTP_VERSION: "25"
66-
NIF_VERSION: "2.16"
60+
# - pair:
61+
# arch: ppc64le-linux-gnu
62+
# cmake_toolchain_file: cc_toolchain/ppc64le-linux-gnu.cmake
63+
# c_compiler: gcc-powerpc64le-linux-gnu
64+
# cpp_compiler: g++-powerpc64le-linux-gnu
65+
# OTP_VERSION: "25"
66+
# NIF_VERSION: "2.16"
6767
- pair:
6868
arch: s390x-linux-gnu
6969
cmake_toolchain_file: cc_toolchain/s390x-linux-gnu.cmake

.github/workflows/windows-precompile.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,17 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
include:
26+
# - pair:
27+
# arch: arm64
28+
# arch_name: aarch64
29+
# msbuild_platform: ARM64
30+
# vcvarsall: amd64_arm64
31+
# OTP_VERSION: "25"
32+
# NIF_VERSION: "2.16"
33+
# CMAKE_GENERATOR_TYPE: "Visual Studio 17 2022"
34+
# CMAKE_TOOLCHAIN_FILE: "cc_toolchain/aarch64-windows-msvc.cmake"
2635
- pair:
27-
arch: arm64
28-
arch_name: aarch64
29-
msbuild_platform: ARM64
30-
vcvarsall: amd64_arm64
31-
OTP_VERSION: "25"
32-
NIF_VERSION: "2.16"
33-
CMAKE_GENERATOR_TYPE: "Visual Studio 17 2022"
34-
CMAKE_TOOLCHAIN_FILE: "cc_toolchain/aarch64-windows-msvc.cmake"
35-
- pair:
36+
arch: x64
3637
arch: x64
3738
arch_name: x86_64
3839
msbuild_platform: x64

mix.exs

+13-2
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,21 @@ defmodule Mix.Tasks.Compile.EvisionPrecompiled do
4545
["2.16", "2.17"]
4646
end
4747

48+
def available_targets do
49+
opencv_version = System.get_env("OPENCV_VER", Metadata.opencv_version())
50+
available_targets = @available_targets
51+
52+
if Enum.member?(["4.11.0"], opencv_version) do
53+
available_targets -- ["ppc64le-linux-gnu"]
54+
else
55+
available_targets
56+
end
57+
end
58+
4859
def available_nif_urls(_host_nif_version, version \\ Metadata.version()) do
4960
nif_version = get_compile_nif_version()
5061

51-
Enum.reduce(@available_targets, [], fn target, acc ->
62+
Enum.reduce(available_targets(), [], fn target, acc ->
5263
no_contrib = get_download_url(target, version, nif_version, false, false, "", "")
5364
with_contrib = get_download_url(target, version, nif_version, true, false, "", "")
5465

@@ -233,7 +244,7 @@ defmodule Mix.Tasks.Compile.EvisionPrecompiled do
233244
end
234245

235246
def available_for_target?(target, log? \\ false) do
236-
available_for_target? = Enum.member?(@available_targets, target)
247+
available_for_target? = Enum.member?(available_targets(), target)
237248

238249
if log? do
239250
if available_for_target? do

0 commit comments

Comments
 (0)