Skip to content

Commit

Permalink
WITH_AI
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Dec 4, 2024
1 parent d77785d commit 07d2304
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
WITH_DOCKER: no
CI: true
WITH_IMAGE_VIX: "0"
ENABLE_AI: "0"
WITH_AI: "0"
EXQLITE_USE_SYSTEM: 1
EXQLITE_SYSTEM_CFLAGS: -I/usr/include
EXQLITE_SYSTEM_LDFLAGS: -L/lib -lsqlite3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
ERLANG_VERSION: "27.1.2"
ELIXIR_VERSION: "1.17.3"
# TODO: read these ^ from .tool-versions.env
ENABLE_AI: "0"
WITH_AI: "0"
WITH_LV_NATIVE: "0"
WITH_IMAGE_VIX: "0"
# ^ TEMP workaround for evision_nif crash on app start
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
# ghcr.io/bonfire-networks/bonfire-app:latest-${{ env.FLAVOUR }}${{ matrix.tag_extra }}
# ghcr.io/bonfire-networks/bonfire-app:${{steps.version.outputs.current-version}}-${{ env.FLAVOUR }}${{ matrix.tag_extra }}
build-args: |
"ENABLE_AI=${{ env.ENABLE_AI }}"
"WITH_AI=${{ env.WITH_AI }}"
"WITH_LV_NATIVE=${{ env.WITH_LV_NATIVE }}"
"WITH_IMAGE_VIX=${{ env.WITH_IMAGE_VIX }}"
"ALPINE_VERSION=${{ env.ALPINE_VERSION }}"
Expand All @@ -118,7 +118,7 @@ jobs:
WITH_DOCKER: no
MIX_ENV: prod
TERM: linux
ENABLE_AI: 0
WITH_AI: 0
WITH_LV_NATIVE: 0
steps:
-
Expand Down
2 changes: 1 addition & 1 deletion flavours/classic/config/templates/not_secret.env
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ MAPBOX_API_KEY=pk.eyJ1IjoibWF5ZWwiLCJhIjoiY2tlMmxzNXF5MGFpaDJ0bzR2M29id2EzOCJ9.Q

WITH_LV_NATIVE=0
WITH_IMAGE_VIX=1
ENABLE_AI=0
WITH_AI=0
2 changes: 1 addition & 1 deletion flavours/classic/config/templates/public.env
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ REPLACE_OS_VARS=true
LIVEVIEW_ENABLED=true
WITH_LV_NATIVE=0
WITH_IMAGE_VIX=0
ENABLE_AI=0
WITH_AI=0
SHOW_DEBUG_IN_DEV=true
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ rel-build-path FORKS_TO_COPY_PATH ARGS="":
--build-arg FLAVOUR_PATH=data/current_flavour \
--build-arg WITH_IMAGE_VIX=$WITH_IMAGE_VIX \
--build-arg WITH_LV_NATIVE=$WITH_LV_NATIVE \
--build-arg ENABLE_AI=$ENABLE_AI \
--build-arg WITH_AI=$WITH_AI \
--build-arg ALPINE_VERSION=$ALPINE_VERSION \
--build-arg ELIXIR_DOCKER_IMAGE=$ELIXIR_DOCKER_IMAGE \
--build-arg FORKS_TO_COPY_PATH={{ FORKS_TO_COPY_PATH }} \
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ defmodule Bonfire.Umbrella.MixProject do
else: []
)

@maybe_ai if(System.get_env("ENABLE_AI") != "0",
@maybe_ai if(System.get_env("WITH_AI") != "0",
do: [
{:bumblebee, "~> 0.6.0"},
{:nx, "~> 0.9.0"},
Expand Down

0 comments on commit 07d2304

Please sign in to comment.