From b72ab015d760640a0b1de216e2629b8415821139 Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Thu, 26 Oct 2023 14:35:21 -0300 Subject: [PATCH] build native in test --- .github/workflows/ci.yml | 3 +++ lib/candlex/native.ex | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d42a1bc..2e61a69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,9 +4,12 @@ on: push: branches: - main + jobs: main: runs-on: ubuntu-latest + env: + CANDLEX_BUILD: true strategy: fail-fast: false matrix: diff --git a/lib/candlex/native.ex b/lib/candlex/native.ex index 50a07f9..c86804a 100644 --- a/lib/candlex/native.ex +++ b/lib/candlex/native.ex @@ -8,7 +8,7 @@ defmodule Candlex.Native do otp_app: :candlex, features: Application.compile_env(:candlex, :crate_features, []), base_url: "#{source_url}/releases/download/v#{version}", - force_build: System.get_env("BUILD") in ["1", "true"], + force_build: System.get_env("CANDLEX_BUILD") in ["1", "true"], version: version # Rustler will override all the below stub functions with real NIFs