From 7cfde55e88ca35501787d0ec2643d01d82ae2780 Mon Sep 17 00:00:00 2001 From: Andrea leopardi Date: Wed, 22 Jun 2022 09:57:33 +0200 Subject: [PATCH] Add supported targets to the NimbleLZ4 module --- lib/nimble_lz4.ex | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/nimble_lz4.ex b/lib/nimble_lz4.ex index c13da58..c8f16d6 100644 --- a/lib/nimble_lz4.ex +++ b/lib/nimble_lz4.ex @@ -23,12 +23,25 @@ defmodule NimbleLZ4 do version = Mix.Project.config()[:version] + targets = ~w( + aarch64-apple-darwin + x86_64-apple-darwin + x86_64-unknown-linux-gnu + x86_64-unknown-linux-musl + arm-unknown-linux-gnueabihf + aarch64-unknown-linux-gnu + aarch64-unknown-linux-musl + x86_64-pc-windows-msvc + x86_64-pc-windows-gnu + ) + use RustlerPrecompiled, otp_app: :nimble_lz4, crate: "nimblelz4", base_url: "https://github.com/whatyouhide/nimble_lz4/releases/download/v#{version}", force_build: System.get_env("NIMBLELZ4_FORCE_BUILD") == "true", - version: version + version: version, + targets: targets @doc """ Compresses the given binary.