Skip to content

Commit

Permalink
build native in test
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Oct 26, 2023
1 parent 234c48f commit b72ab01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ on:
push:
branches:
- main

jobs:
main:
runs-on: ubuntu-latest
env:
CANDLEX_BUILD: true
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion lib/candlex/native.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b72ab01

Please sign in to comment.