Skip to content

Commit

Permalink
fixed release env in host core (#396)
Browse files Browse the repository at this point in the history
* fixed release env in host core

Signed-off-by: Brooks Townsend <[email protected]>

* make esbuild on bash

Signed-off-by: Brooks Townsend <[email protected]>

* build files in dev mode

Signed-off-by: Brooks Townsend <[email protected]>

* skip a cache hit for Windows

Signed-off-by: Brooks Townsend <[email protected]>
  • Loading branch information
brooksmtownsend authored May 11, 2022
1 parent 163a5ea commit b7a9f17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
- name: Compile Phoenix Assets
working-directory: ${{env.working-directory}}
shell: bash
# esbuild + dart sass are only included in the dev runtime environment
env:
MIX_ENV: dev
Expand Down Expand Up @@ -162,6 +163,7 @@ jobs:
run: echo "wasmcloud_host_version=$(grep '@app_vsn "' ${{env.working-directory}}/mix.exs | cut -d '"' -f2)" > $GITHUB_ENV

- name: Retrieve Mix Dependencies Cache
if: ${{ !startswith(matrix.os, 'windows') }} # Windows gets angry about not owning files if you restore from cache
uses: actions/cache@v2
id: mix-cache #id to use in retrieve action
with:
Expand All @@ -184,6 +186,7 @@ jobs:
- name: Compile Phoenix Assets
if: ${{ env.working-directory == 'wasmcloud_host' }}
working-directory: ${{env.working-directory}}
shell: bash
# esbuild + dart sass are only included in the dev runtime environment
env:
MIX_ENV: dev
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/wasmcloud_host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
brew install elixir
- name: Retrieve Mix Dependencies Cache
if: ${{ !startswith(matrix.os, 'windows') }} # Windows gets angry about not owning files if you restore from cache
uses: actions/cache@v2
id: mix-cache #id to use in retrieve action
with:
Expand Down Expand Up @@ -72,6 +73,9 @@ jobs:

- name: Ensure static files build properly
working-directory: ${{env.working-directory}}
shell: bash
env:
MIX_ENV: dev
run: make esbuild

- name: Run Credo
Expand Down
2 changes: 1 addition & 1 deletion host_core/rel/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use Distillery.Releases.Config,
# This sets the default release built by `mix distillery.release`
default_release: :default,
# This sets the default environment used by `mix distillery.release`
default_environment: config_env()
default_environment: :prod

# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/config/distillery.html
Expand Down

0 comments on commit b7a9f17

Please sign in to comment.